From 485ce95d63d0e9ecd34db44b5edc4bd4871b68a0 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 11 Jan 2017 11:51:22 -0500 Subject: [PATCH] curl: Fix use-after-free --- src/libostree/ostree-fetcher-curl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libostree/ostree-fetcher-curl.c b/src/libostree/ostree-fetcher-curl.c index 6a84ba7e63..f66e6ae45f 100644 --- a/src/libostree/ostree-fetcher-curl.c +++ b/src/libostree/ostree-fetcher-curl.c @@ -148,6 +148,7 @@ _ostree_fetcher_finalize (GObject *object) g_clear_pointer (&self->extra_headers, (GDestroyNotify)curl_slist_free_all); g_hash_table_unref (self->outstanding_requests); g_hash_table_unref (self->sockets); + g_clear_pointer (&self->timer_event, (GDestroyNotify)g_source_destroy); if (self->mainctx) g_main_context_unref (self->mainctx); curl_multi_cleanup (self->multi);