Mercurial > pidgin
diff libpurple/plugins/log_reader.c @ 20784:ca0d0e4f8c91
Fix a small leak in the log_reader plugin.
| author | Daniel Atallah <daniel.atallah@gmail.com> |
|---|---|
| date | Fri, 05 Oct 2007 05:18:11 +0000 |
| parents | 883c18d31bf4 |
| children | 24ce4fcce5b0 |
line wrap: on
line diff
--- a/libpurple/plugins/log_reader.c Fri Oct 05 04:03:57 2007 +0000 +++ b/libpurple/plugins/log_reader.c Fri Oct 05 05:18:11 2007 +0000 @@ -2271,6 +2271,7 @@ "Error reading talk.ini\n"); if (error) g_error_free(error); + g_free(path); } else { char *line = contents; while (*contents) { @@ -2318,6 +2319,9 @@ "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");
