Fix several locations with potential memory leak
This commit is contained in:
@@ -56,6 +56,7 @@ static int testSimpleAPI(void)
|
||||
} else {
|
||||
DISPLAY("ERROR: %s\n", ZSTD_getErrorName(ret));
|
||||
}
|
||||
free(output);
|
||||
return 1;
|
||||
}
|
||||
if (ret != size) {
|
||||
@@ -64,6 +65,7 @@ static int testSimpleAPI(void)
|
||||
}
|
||||
if (memcmp(EXPECTED, output, size) != 0) {
|
||||
DISPLAY("ERROR: Wrong decoded output produced\n");
|
||||
free(output);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user