mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
legacy.c: fix memory leaks
This commit is contained in:
@ -134,7 +134,7 @@ debug: pzstd$(EXT) tests roundtrip
|
|||||||
|
|
||||||
.PHONY: tsan
|
.PHONY: tsan
|
||||||
tsan: PZSTD_CCXXFLAGS += -fsanitize=thread -fPIC
|
tsan: PZSTD_CCXXFLAGS += -fsanitize=thread -fPIC
|
||||||
tsan: PZSTD_LDFLAGS += -fsanitize=thread -pie
|
tsan: PZSTD_LDFLAGS += -fsanitize=thread
|
||||||
tsan: debug
|
tsan: debug
|
||||||
|
|
||||||
.PHONY: asan
|
.PHONY: asan
|
||||||
|
@ -65,6 +65,7 @@ int testSimpleAPI(void)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(output);
|
||||||
DISPLAY("Simple API OK\n");
|
DISPLAY("Simple API OK\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -118,6 +119,8 @@ int testStreamingAPI(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(outBuff);
|
||||||
|
ZSTD_freeDStream(stream);
|
||||||
DISPLAY("Streaming API OK\n");
|
DISPLAY("Streaming API OK\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user