diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-06-03 21:30:11 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-06-03 21:30:11 +0300 |
commit | 533d5cecd4390cec9ea75e6d1baabaae1945f0aa (patch) | |
tree | b16c8da71e552826406c482203d96f02fda8e98a | |
parent | f33328efaba8992b3095a68711d2f528dac126fb (diff) | |
download | libmicrohttpd-533d5cecd4390cec9ea75e6d1baabaae1945f0aa.tar.gz libmicrohttpd-533d5cecd4390cec9ea75e6d1baabaae1945f0aa.zip |
chunked_example: fixed resource leak
-rw-r--r-- | src/examples/chunked_example.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/examples/chunked_example.c b/src/examples/chunked_example.c index ed20d472..68b7ea1e 100644 --- a/src/examples/chunked_example.c +++ b/src/examples/chunked_example.c | |||
@@ -143,6 +143,7 @@ ahc_echo (void *cls, | |||
143 | "chunked")) | 143 | "chunked")) |
144 | { | 144 | { |
145 | free (callback_param); | 145 | free (callback_param); |
146 | MHD_destroy_response (response); | ||
146 | return MHD_NO; | 147 | return MHD_NO; |
147 | } | 148 | } |
148 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 149 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |