From 6a57d0a2f03eddbe44f1d0edaeb5ef32a99d3e69 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 13 Apr 2016 11:14:20 +0200 Subject: [PATCH] fetcher: Initialize output_stream_set_lock mutex ostree pull-local crashed for me in thread_closure_unref () doing: g_mutex_clear (&thread_closure->output_stream_set_lock); Seems like we never initialize this mutex. Closes: #254 Approved by: cgwalters --- src/libostree/ostree-fetcher.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libostree/ostree-fetcher.c b/src/libostree/ostree-fetcher.c index 26e72c45..d7915ba6 100644 --- a/src/libostree/ostree-fetcher.c +++ b/src/libostree/ostree-fetcher.c @@ -541,6 +541,7 @@ _ostree_fetcher_constructed (GObject *object) self->thread_closure->output_stream_set = g_hash_table_new_full (NULL, NULL, (GDestroyNotify) NULL, (GDestroyNotify) g_object_unref); + g_mutex_init (&self->thread_closure->output_stream_set_lock); if (g_getenv ("OSTREE_DEBUG_HTTP")) {