# HG changeset patch # User Christian Hammond # Date 1040773261 0 # Node ID 4927f8dd046f3821c4749858be5b7259bdcd5a85 # Parent c0f4c664e3ba7df6d27b63426d636b1fafef3605 [gaim-migrate @ 4353] Memory leak fixes. Thanks Ari Pollak. committer: Tailor Script diff -r c0f4c664e3ba -r 4927f8dd046f src/module.c --- 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);