From ca14bfa26485681be797a1e86fdee20fe48017c6 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sun, 26 Apr 2015 12:23:56 +0900 Subject: [PATCH] fix minor leak in rage on failed win creation fixes CID 61903 --- src/bin/win.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/win.c b/src/bin/win.c index 733a1d5..83dd798 100644 --- a/src/bin/win.c +++ b/src/bin/win.c @@ -332,7 +332,11 @@ win_add(void) if (!inf) return NULL; win = elm_win_add(NULL, "Rage", ELM_WIN_BASIC); - if (!win) return NULL; + if (!win) + { + free(inf); + return NULL; + } elm_win_title_set(win, "Rage"); elm_win_autodel_set(win, EINA_TRUE);