/pidgin/main: 14555e001a59: Fix leak in previous commit.

Elliott Sales de Andrade qulogic at pidgin.im
Sat Nov 15 02:03:30 EST 2014


Changeset: 14555e001a592bfaa9c5e54d4cb03924f8ba2517
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2014-11-15 02:03 -0500
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/14555e001a59

Description:

Fix leak in previous commit.

Refs #13727. Thanks TypoNAM on IRC.

diffstat:

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

diffs (11 lines):

diff --git a/libpurple/protocols/irc/irc.c b/libpurple/protocols/irc/irc.c
--- a/libpurple/protocols/irc/irc.c
+++ b/libpurple/protocols/irc/irc.c
@@ -82,6 +82,7 @@ static void irc_view_motd(PurplePluginAc
 	body = g_strdup_printf("<span style=\"font-family: monospace;\">%s</span>", irc->motd->str);
 	purple_notify_formatted(gc, title, title, NULL, body, NULL, NULL);
 	g_free(title);
+	g_free(body);
 }
 
 static int do_send(struct irc_conn *irc, const char *buf, gsize len)



More information about the Commits mailing list