aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-10-05 23:16:19 +0200
committerChristian Grothoff <christian@grothoff.org>2017-10-05 23:16:19 +0200
commit1a23dd25c36bdb0e0be264730e9088a49a1e8152 (patch)
tree0df4a2329e32c5908b6ffd9d5aa9eda2cd075a4c /doc
parent111e08fbe3f436bd21f78ab8c6c4c3b79e728bba (diff)
downloadlibmicrohttpd-1a23dd25c36bdb0e0be264730e9088a49a1e8152.tar.gz
libmicrohttpd-1a23dd25c36bdb0e0be264730e9088a49a1e8152.zip
misc style improvements, fixing some tiny rare memory leaks in examples
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/largepost.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c
index af6a48dd..8ef7c9fe 100644
--- a/doc/examples/largepost.c
+++ b/doc/examples/largepost.c
@@ -151,7 +151,9 @@ iterate_post (void *coninfo_cls,
151 con_info->answercode = MHD_HTTP_FORBIDDEN; 151 con_info->answercode = MHD_HTTP_FORBIDDEN;
152 return MHD_YES; 152 return MHD_YES;
153 } 153 }
154 154 /* NOTE: This is technically a race with the 'fopen()' above,
155 but there is no easy fix, short of moving to open(O_EXCL)
156 instead of using fopen(). For the example, we do not care. */
155 con_info->fp = fopen (filename, "ab"); 157 con_info->fp = fopen (filename, "ab");
156 if (!con_info->fp) 158 if (!con_info->fp)
157 { 159 {