Ver Fonte

chunked_example: fixed resource leak

Evgeny Grin (Karlson2k) há 4 anos atrás
pai
commit
533d5cecd4
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      src/examples/chunked_example.c

+ 1 - 0
src/examples/chunked_example.c

@@ -143,6 +143,7 @@ ahc_echo (void *cls,
                                          "chunked"))
   {
     free (callback_param);
+    MHD_destroy_response (response);
     return MHD_NO;
   }
   ret = MHD_queue_response (connection, MHD_HTTP_OK, response);