Fix a memory leak in hstox interface

This commit is contained in:
Maxim Biro 2016-11-15 03:06:52 -05:00
parent 6e1a01bd16
commit a403c996b5

View File

@ -143,5 +143,9 @@ int method_cmp(char const *ptr, char const *expected, size_t max_size)
}
}
return memcmp(transformed, expected, max_size);
int result = memcmp(transformed, expected, max_size);
free(transformed);
return result;
}