diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-12-31 16:01:37 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-12-31 16:01:37 +0100 |
commit | c5285fbfcede2e0f54d2b5f14193041067cd2af6 (patch) | |
tree | c676d3a1551f7dd4daa4eb03e89a3ed09c3fb9b2 /src/import/curl-util.c | |
parent | lldp: fix double free (diff) | |
download | systemd-c5285fbfcede2e0f54d2b5f14193041067cd2af6.tar.xz systemd-c5285fbfcede2e0f54d2b5f14193041067cd2af6.zip |
import: fix mem-leak in CurlGlue
Make sure to actually free the underlying object in CurlGlue unref.
Diffstat (limited to '')
-rw-r--r-- | src/import/curl-util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/import/curl-util.c b/src/import/curl-util.c index 6a6b1c0004..0c6c8673cc 100644 --- a/src/import/curl-util.c +++ b/src/import/curl-util.c @@ -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; } |