[lib][sysparam] free hexbuffer in error path
This commit is contained in:
committed by
Travis Geiselbrecht
parent
65019cc391
commit
a1cd66a0bd
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user