mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Removed memory leak, thanks to diath for spotting it.
This commit is contained in:
parent
6f0ae0dbb4
commit
0b6806d7f7
@ -36,5 +36,7 @@ unsigned char * hex_string_to_bin(char hex_string[])
|
||||
int i;
|
||||
for(i = 0; i < len; ++i, pos+=2)
|
||||
sscanf(pos,"%2hhx",&val[i]);
|
||||
|
||||
free(val);
|
||||
return val;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user