legacy.c: fix memory leaks

This commit is contained in:
Przemyslaw Skibinski committed 2017-02-21 20:10:21 +01:00
1 parent d8114e5802
commit 346ce32ade
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -65,6 +65,7 @@ int testSimpleAPI(void)
return 1;
}
free(output);
DISPLAY("Simple API OK\n");
return 0;
}
@@ -118,6 +119,8 @@ int testStreamingAPI(void)
}
}
free(outBuff);
ZSTD_freeDStream(stream);
DISPLAY("Streaming API OK\n");
return 0;
}