Wireshark-dev: [Wireshark-dev] Directory descriptor leak
From: Jakub Zawadzki <[email protected]>
Date: Tue, 10 Mar 2009 23:10:32 +0100
Hi,

Very small patch, found using valgrind.
Index: epan/plugins.c
===================================================================
--- epan/plugins.c	(wersja 27679)
+++ epan/plugins.c	(kopia robocza)
@@ -385,6 +385,7 @@ init_plugins(void)
 		    plugins_scan_dir(plugin_dir_path);
 		    g_free(plugin_dir_path);
 		}
+		ws_dir_close(dir);
 	    }
 	} else
 	    plugins_scan_dir(plugin_dir);