summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/misc_tools.c2
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}