Fixed memory leak in TestPrint

This commit is contained in:
Armin Novak
2021-06-01 11:43:39 +02:00
committed by akallabeth
parent 98cd46ca9c
commit 855b77a8d5

View File

@@ -157,6 +157,7 @@ static BOOL test_bin_tohex_string_alloc(void)
goto fail;
if (memcmp(strbuffer1, str, sizeof(strbuffer1)) != 0)
goto fail;
free(str);
str = winpr_BinToHexString(binbuffer1, sizeof(binbuffer1), TRUE);
if (!str)
goto fail;