From 934adae70ae6eda5236529d3c65009e7ba87309d Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sun, 23 Feb 2020 15:20:01 +0200 Subject: [PATCH] lib: use same allocator when copying MuMsgPartSigStatusReport Fixes a sigabrt when freeing later. --- lib/mu-msg-part.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mu-msg-part.c b/lib/mu-msg-part.c index b8e23b24..5584f946 100644 --- a/lib/mu-msg-part.c +++ b/lib/mu-msg-part.c @@ -494,7 +494,7 @@ copy_status_report_maybe (GObject *obj) if (!report) return NULL; /* nothing to copy */ - copy = g_new0(MuMsgPartSigStatusReport, 1); + copy = g_slice_new0(MuMsgPartSigStatusReport); copy->verdict = report->verdict; if (report->report)