summaryrefslogtreecommitdiff
path: root/src/lib/efreet
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-03-15 08:58:17 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-03-15 08:58:17 -0400
commit5ed079cb617e3a06b4727145693427a77d93b514 (patch)
tree8f187bcd1b1f797816f255c34b087faeefda2ae4 /src/lib/efreet
parenteeb6d626ea09642a15d6d549fc64dfd67e9141fc (diff)
efreet: Fix resource leak
Summary: Coverity reports that we leak 'exec' here when we return. Add IF_FREE(exec) to remove the leak. Fixes Coverity CID1399090 @fix Depends on D8353 Reviewers: raster, cedric, zmike, bu5hm4n, stefan_schmidt Reviewed By: cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8354
Diffstat (limited to 'src/lib/efreet')
-rw-r--r--src/lib/efreet/efreet_desktop_command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/efreet/efreet_desktop_command.c b/src/lib/efreet/efreet_desktop_command.c
index c98ce0fbdf..8c99102c3d 100644
--- a/src/lib/efreet/efreet_desktop_command.c
+++ b/src/lib/efreet/efreet_desktop_command.c
@@ -464,6 +464,7 @@ efreet_desktop_command_build(Efreet_Desktop_Command *command)
464 } 464 }
465 while ((l = eina_list_next(l))); 465 while ((l = eina_list_next(l)));
466 466
467 IF_FREE(exec);
467 return execs; 468 return execs;
468error: 469error:
469 IF_FREE(exec); 470 IF_FREE(exec);