From 009aa21bc03324586f1f5505fd1d9ec848642567 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Fri, 5 Feb 2021 13:25:53 +0100 Subject: [PATCH] TT#108003 Fix double free in __established() The __attempt_send() function will free the gs string on success, so we should not free it again. Change-Id: I74c9e41854db56bf29ae541eaeebfb97ce8eeb74 Warned-by: coverity --- daemon/homer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/daemon/homer.c b/daemon/homer.c index 024a90191..71301d0d6 100644 --- a/daemon/homer.c +++ b/daemon/homer.c @@ -116,7 +116,6 @@ static int __established(struct homer_sender *hs) { if (ret == 1) // write error, takes care of deleting hs->partial return -1; // ret == 0 -> sent OK, drop through to unqueue - g_string_free(hs->partial, TRUE); hs->partial = NULL; }