From: Alejandro Colomar Date: Thu, 26 Jan 2023 00:01:31 +0000 (+0100) Subject: fopencookie.3: EXAMPLES: Fix memory leak X-Git-Tag: man-pages-6.03~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f36d9a53bc23cdad566143639b40a9883fc573b1;p=thirdparty%2Fman-pages.git fopencookie.3: EXAMPLES: Fix memory leak Signed-off-by: Alejandro Colomar --- diff --git a/man3/fopencookie.3 b/man3/fopencookie.3 index f3bad43987..b3d3ebc72b 100644 --- a/man3/fopencookie.3 +++ b/man3/fopencookie.3 @@ -445,6 +445,8 @@ main(int argc, char *argv[]) printf("/%.*s/\en", (int) nread, buf); } + free(mycookie.buf); + exit(EXIT_SUCCESS); } .EE