/soc/2013/ankitkv/gobjectification: ec60bc0b0be4: Freed a string

Ankit Vani a at nevitus.org
Thu Sep 5 18:34:27 EDT 2013


Changeset: ec60bc0b0be4b639cc5ff25fa4511f0e9fcfd322
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-09-06 03:30 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/ec60bc0b0be4

Description:

Freed a string

diffstat:

 libpurple/protocols/jabber/si.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (20 lines):

diff --git a/libpurple/protocols/jabber/si.c b/libpurple/protocols/jabber/si.c
--- a/libpurple/protocols/jabber/si.c
+++ b/libpurple/protocols/jabber/si.c
@@ -1468,6 +1468,7 @@ static void do_transfer_send(PurpleXfer 
 			jsx->stream_method |= STREAM_METHOD_IBB;
 		if (jabber_resource_has_capability(jbr, NS_SI_FILE_TRANSFER)) {
 			jabber_si_xfer_send_request(xfer);
+			g_free(who);
 			return;
 		}
 
@@ -1480,6 +1481,8 @@ static void do_transfer_send(PurpleXfer 
 		jabber_disco_info_do(jsx->js, who,
 				jabber_si_xfer_send_disco_cb, xfer);
 	}
+
+	g_free(who);
 }
 
 static void resource_select_ok_cb(PurpleXfer *xfer, PurpleRequestFields *fields)



More information about the Commits mailing list