OSDN Git Service

gobex: Fix decoding error memory leak
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 29 Jun 2011 13:01:39 +0000 (16:01 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 4 Dec 2012 21:21:57 +0000 (22:21 +0100)
gobex/gobex.c

index 1c1f413..43d67ec 100644 (file)
@@ -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);