[lib][sysparam] free hexbuffer in error path

This commit is contained in:
Peter Harliman Liem
2016-11-08 23:09:47 +08:00
committed by Travis Geiselbrecht
parent 65019cc391
commit a1cd66a0bd

View File

@@ -514,6 +514,7 @@ static ssize_t hexstr_to_val(const char *str, uint8_t **buf)
uint8_t c = str[pos];
if (!isxdigit(c)) {
free(hexbuffer);
return ERR_NOT_VALID;
}