Bug#438121: memory leak problem in the main-menu.c
Package: main-menu
Version: 1.21
Severity: normal
Tags: d-i, patch
Hello.
I found one memory leak problem in the main-menu.c at show_main_menu().
The "s" variable is leaked.
Cheers,
--
/*
* Masami Ichikawa
* mailto: hangar-18@mub.biglobe.ne.jp
* : masami256@gmail.com
*/
Index: main-menu.c
===================================================================
--- main-menu.c (revision 48961)
+++ main-menu.c (working copy)
@@ -274,6 +274,7 @@
di_log(DI_LOG_LEVEL_WARNING, "Internal error! Cannot find \"%s\" in menu.", s);
}
+ free(s);
free(menu);
free(package_array);
Reply to: