diff options
author | charmlesscoin <charmlesscoin@gmail.com> | 2013-08-04 04:29:32 -0400 |
---|---|---|
committer | charmlesscoin <charmlesscoin@gmail.com> | 2013-08-04 04:29:32 -0400 |
commit | 0b6806d7f74aca0273e41187d73685bd84eedd28 (patch) | |
tree | 8c63686ebc43f3bebe746ad1d46e89be6e9449f2 /testing/misc_tools.c | |
parent | 6f0ae0dbb483f7cb11ed735eac235e3367ccb019 (diff) |
Removed memory leak, thanks to diath for spotting it.
Diffstat (limited to 'testing/misc_tools.c')
-rw-r--r-- | testing/misc_tools.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/misc_tools.c b/testing/misc_tools.c index dbaa8b3b..08f57588 100644 --- a/testing/misc_tools.c +++ b/testing/misc_tools.c | |||
@@ -36,5 +36,7 @@ unsigned char * hex_string_to_bin(char hex_string[]) | |||
36 | int i; | 36 | int i; |
37 | for(i = 0; i < len; ++i, pos+=2) | 37 | for(i = 0; i < len; ++i, pos+=2) |
38 | sscanf(pos,"%2hhx",&val[i]); | 38 | sscanf(pos,"%2hhx",&val[i]); |
39 | |||
40 | free(val); | ||
39 | return val; | 41 | return val; |
40 | } | 42 | } |