utils_data_to_string cleanups (free string after use)

This commit is contained in:
fduncanh
2022-02-04 12:43:50 -05:00
parent a1dc505013
commit a32f4e96b9
2 changed files with 15 additions and 4 deletions

View File

@@ -196,6 +196,7 @@ char *utils_data_to_string(const unsigned char *data, int datalen, int chars_per
sprintf(p,"\n");
p++;
assert(p == &(str[len]));
assert(len == strlen(str));
return str;
}