Mercurial > pidgin.yaz
diff src/module.c @ 4135:4927f8dd046f
[gaim-migrate @ 4353]
Memory leak fixes. Thanks Ari Pollak.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 24 Dec 2002 23:41:01 +0000 |
parents | b359aab1c576 |
children | 9c7fcb211886 |
line wrap: on
line diff
--- a/src/module.c Tue Dec 24 19:46:01 2002 +0000 +++ b/src/module.c Tue Dec 24 23:41:01 2002 +0000 @@ -122,6 +122,7 @@ handle = g_module_open(path, 0); if (!handle) { debug_printf("%s is unloadable: %s\n", file, g_module_error()); + g_free(path); continue; } if (g_module_symbol(handle, "gaim_prpl_init", (gpointer *)&gaim_prpl_init)) { @@ -136,16 +137,19 @@ find_prpl(new_prpl->protocol)) { /* Nothing to see here--move along, move along */ unload_protocol(new_prpl); + g_free(path); continue; } protocols = g_slist_insert_sorted(protocols, new_prpl, (GCompareFunc)proto_compare); g_module_close(handle); + g_free(path); continue; } if (!g_module_symbol(handle, "gaim_plugin_init", (gpointer *)&gaim_plugin_init)) { debug_printf("%s is unloadable %s\n", file, g_module_error()); g_module_close(handle); + g_free(path); continue; } plug = g_new0(struct gaim_plugin, 1);