diff options
Diffstat (limited to 'manual/examples/memstrm.c')
-rw-r--r-- | manual/examples/memstrm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/manual/examples/memstrm.c b/manual/examples/memstrm.c index 9ee6298..28be892 100644 --- a/manual/examples/memstrm.c +++ b/manual/examples/memstrm.c @@ -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; } |