diff options
| author | Alejandro Colomar <alx@kernel.org> | 2023-01-26 01:01:31 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2023-01-26 01:01:55 +0100 |
| commit | f36d9a53bc23cdad566143639b40a9883fc573b1 (patch) | |
| tree | 4094a5bf45be95eaaaa93839b3c005167c241415 | |
| parent | 4fe6860f6799a508cfcd47af3bfd3af91f84a6f1 (diff) | |
| download | man-pages-f36d9a53bc23cdad566143639b40a9883fc573b1.tar.gz | |
fopencookie.3: EXAMPLES: Fix memory leak
Signed-off-by: Alejandro Colomar <alx@kernel.org>
| -rw-r--r-- | man3/fopencookie.3 | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
