im.pidgin.pidgin: 77376fe079e753b612b3b8c901060e689f3dee11

datallah at pidgin.im datallah at pidgin.im
Fri Oct 5 01:35:37 EDT 2007


revision:            77376fe079e753b612b3b8c901060e689f3dee11
date:                2007-10-05T05:18:11
author:              datallah at pidgin.im
branch:              im.pidgin.pidgin
changelog:
Fix a small leak in the log_reader plugin.

manifest:
format_version "1"

new_manifest [c1496a52c33df24b806dae460448241333cd055d]

old_revision [8fcdd455fb269a1dbd35d2d2e02f8005b5c9d086]

patch "libpurple/plugins/log_reader.c"
 from [534e7453f5bc02fcbb0657e583bafb58597d38c7]
   to [bb60965d92b317d2cb41e929c14b1da60b21b08e]
-------------- next part --------------
#
#
# patch "libpurple/plugins/log_reader.c"
#  from [534e7453f5bc02fcbb0657e583bafb58597d38c7]
#    to [bb60965d92b317d2cb41e929c14b1da60b21b08e]
#
============================================================
--- libpurple/plugins/log_reader.c	534e7453f5bc02fcbb0657e583bafb58597d38c7
+++ libpurple/plugins/log_reader.c	bb60965d92b317d2cb41e929c14b1da60b21b08e
@@ -2271,6 +2271,7 @@ init_plugin(PurplePlugin *plugin)
 			                   "Error reading talk.ini\n");
 			if (error)
 				g_error_free(error);
+			g_free(path);
 		} else {
 			char *line = contents;
 			while (*contents) {
@@ -2318,7 +2319,10 @@ init_plugin(PurplePlugin *plugin)
 	                        "default", "logs", NULL);
 #endif
 
+	/*XXX: Why do we even bother allocating it ? */
+	g_free(path);
 
+
 	/* Add QIP log directory preference. */
 	purple_prefs_add_none("/plugins/core/log_reader/qip");
 


More information about the Commits mailing list