projects
/
platform
/
core
/
connectivity
/
mobileap-agent.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bbe681
)
[mobileap-agent]: @Fix Potential Memory Leak issue
81/98381/1
author
Maneesh Jain
<maneesh.jain@samsung.com>
Thu, 17 Nov 2016 06:54:26 +0000
(12:24 +0530)
committer
Maneesh Jain
<maneesh.jain@samsung.com>
Thu, 17 Nov 2016 06:54:26 +0000
(12:24 +0530)
Change-Id: Idb0c6bac939c7af35911c95933a77da18bb57ecc
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
src/mobileap_common.c
patch
|
blob
|
history
diff --git
a/src/mobileap_common.c
b/src/mobileap_common.c
index
40a7a4e
..
6fea080
100755
(executable)
--- a/
src/mobileap_common.c
+++ b/
src/mobileap_common.c
@@
-518,6
+518,7
@@
int _execute_command(const char *cmd)
if ((pid = fork()) < 0) {
ERR("fork failed\n");
+ g_strfreev(args);
return EXIT_FAILURE;
}
@@
-526,6
+527,7
@@
int _execute_command(const char *cmd)
ERR("execl failed\n");
ERR("Should never get here!\n");
+ g_strfreev(args);
return EXIT_FAILURE;
} else {
/* Need to add timeout */