mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
kconfig: gconf: fix potential memory leak in renderer_edited()
[ Upstream commit f72ed4c6a375e52a3f4b75615e4a89d29d8acea7 ] If gtk_tree_model_get_iter() fails, gtk_tree_path_free() is not called. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
dca7764741
commit
0589cc9733
1 changed files with 2 additions and 1 deletions
|
|
@ -786,7 +786,7 @@ static void renderer_edited(GtkCellRendererText * cell,
|
|||
struct symbol *sym;
|
||||
|
||||
if (!gtk_tree_model_get_iter(model2, &iter, path))
|
||||
return;
|
||||
goto free;
|
||||
|
||||
gtk_tree_model_get(model2, &iter, COL_MENU, &menu, -1);
|
||||
sym = menu->sym;
|
||||
|
|
@ -798,6 +798,7 @@ static void renderer_edited(GtkCellRendererText * cell,
|
|||
|
||||
update_tree(&rootmenu, NULL);
|
||||
|
||||
free:
|
||||
gtk_tree_path_free(path);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue