]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix potential leak of 'outBuff' (reported by scan-build)
authorLzu Tao <taolzu@gmail.com>
Sun, 6 Jan 2019 16:28:38 +0000 (23:28 +0700)
committerLzu Tao <taolzu@gmail.com>
Sun, 6 Jan 2019 16:28:38 +0000 (23:28 +0700)
tests/legacy.c

index e1cf82f2f9d8314562b218266aec2225fa994c0c..4234e8fbd706b1d806b1d15a80bfb8a3908c7e29 100644 (file)
@@ -87,6 +87,7 @@ static int testStreamingAPI(void)
     }
     if (stream == NULL) {
         DISPLAY("ERROR: Could not create dstream\n");
+        free(outBuff);
         return 1;
     }