manual: Add missing free to open_memstream example [BZ #27866]

Reviewed-by: Collin Funk <collin.funk1@gmail.com>
This commit is contained in:
Ravina Jain 2025-06-24 20:36:25 +05:30 committed by Arjun Shankar
parent 36bcbc6b5b
commit b2a8d19f4a
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
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;
}