Removed memory leak, thanks to diath for spotting it.

This commit is contained in:
charmlesscoin 2013-08-04 04:29:32 -04:00
parent 6f0ae0dbb4
commit 0b6806d7f7

View File

@ -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;
}