From 565210f510e4cb605ff2e66b91b26adca0a3a01e Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 29 Jun 2011 16:01:39 +0300 Subject: [PATCH] gobex: Fix decoding error memory leak --- gobex/gobex.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gobex/gobex.c b/gobex/gobex.c index 1c1f41366..43d67ec9f 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -416,6 +416,9 @@ static gboolean incoming_data(GIOChannel *io, GIOCondition cond, g_obex_handle_packet(obex, err, pkt); + if (err != NULL) + g_error_free(err); + if (pkt != NULL) g_obex_packet_free(pkt); -- 2.47.3