From 0b6806d7f74aca0273e41187d73685bd84eedd28 Mon Sep 17 00:00:00 2001 From: charmlesscoin Date: Sun, 4 Aug 2013 04:29:32 -0400 Subject: Removed memory leak, thanks to diath for spotting it. --- testing/misc_tools.c | 2 ++ 1 file changed, 2 insertions(+) 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[]) int i; for(i = 0; i < len; ++i, pos+=2) sscanf(pos,"%2hhx",&val[i]); + + free(val); return val; } -- cgit v1.2.3