chiark / gitweb /
import: fix mem-leak in CurlGlue
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 31 Dec 2014 15:01:37 +0000 (16:01 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 31 Dec 2014 15:01:37 +0000 (16:01 +0100)
Make sure to actually free the underlying object in CurlGlue unref.

src/import/curl-util.c

index 6a6b1c0..0c6c867 100644 (file)
@@ -236,6 +236,7 @@ CurlGlue *curl_glue_unref(CurlGlue *g) {
 
         sd_event_source_unref(g->timer);
         sd_event_unref(g->event);
+        free(g);
 
         return NULL;
 }