From de7e3be7fad12b335c9dc29ba213e98d74890a7c Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Sun, 6 Jan 2019 23:28:38 +0700 Subject: [PATCH] Fix potential leak of 'outBuff' (reported by scan-build) --- tests/legacy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/legacy.c b/tests/legacy.c index e1cf82f2..4234e8fb 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; }