mirror of git://sourceware.org/git/glibc.git
manual: Add missing free to open_memstream example [BZ #27866]
Reviewed-by: Collin Funk <collin.funk1@gmail.com>
This commit is contained in:
parent
36bcbc6b5b
commit
b2a8d19f4a
|
|
@ -16,6 +16,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main (void)
|
main (void)
|
||||||
|
|
@ -31,6 +32,7 @@ main (void)
|
||||||
fprintf (stream, ", world");
|
fprintf (stream, ", world");
|
||||||
fclose (stream);
|
fclose (stream);
|
||||||
printf ("buf = `%s', size = %zu\n", bp, size);
|
printf ("buf = `%s', size = %zu\n", bp, size);
|
||||||
|
free (bp);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue