aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-03-09 03:44:31 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-03-09 04:15:13 +0100
commit2841079cd091bfc0a6b7c326e7027f96694c1d5b (patch)
tree7d02af56777d958bf53b034fbd808baec44a4dae
parent9c8b5ebfc4ca3ba4ffd9dab1d8829e3a7b2aea68 (diff)
downloadman-pages-2841079cd091bfc0a6b7c326e7027f96694c1d5b.tar.gz
fmemopen.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/fmemopen.33
1 files changed, 3 insertions, 0 deletions
diff --git a/man3/fmemopen.3 b/man3/fmemopen.3
index 18c5d89a3e..e422415745 100644
--- a/man3/fmemopen.3
+++ b/man3/fmemopen.3
@@ -407,9 +407,12 @@ main(int argc, char *argv[])
if (s == \-1)
handle_error("fprintf");
}
+
fclose(in);
fclose(out);
+
printf("size=%zu; ptr=%s\\n", size, ptr);
+
free(ptr);
exit(EXIT_SUCCESS);
}