From: Lzu Tao Date: Sun, 6 Jan 2019 16:28:38 +0000 (+0700) Subject: Fix potential leak of 'outBuff' (reported by scan-build) X-Git-Tag: v1.4.0^2~51^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de7e3be7fad12b335c9dc29ba213e98d74890a7c;p=thirdparty%2Fzstd.git Fix potential leak of 'outBuff' (reported by scan-build) --- diff --git a/tests/legacy.c b/tests/legacy.c index e1cf82f2f..4234e8fbd 100644 --- a/tests/legacy.c +++ b/tests/legacy.c @@ -87,6 +87,7 @@ static int testStreamingAPI(void) } if (stream == NULL) { DISPLAY("ERROR: Could not create dstream\n"); + free(outBuff); return 1; }