From: Ravina Jain Date: Tue, 24 Jun 2025 15:06:25 +0000 (+0530) Subject: manual: Add missing free to open_memstream example [BZ #27866] X-Git-Tag: glibc-2.42~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b2a8d19f4adc8ca22394b02c144b4bc867adc804;p=thirdparty%2Fglibc.git manual: Add missing free to open_memstream example [BZ #27866] Reviewed-by: Collin Funk --- diff --git a/manual/examples/memstrm.c b/manual/examples/memstrm.c index 9ee6298a35..28be892aeb 100644 --- a/manual/examples/memstrm.c +++ b/manual/examples/memstrm.c @@ -16,6 +16,7 @@ */ #include +#include int main (void) @@ -31,6 +32,7 @@ main (void) fprintf (stream, ", world"); fclose (stream); printf ("buf = `%s', size = %zu\n", bp, size); + free (bp); return 0; }