projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d54ecd
)
e_info_client: fix resource leak
37/221937/1
author
Seunghun Lee
<shiin.lee@samsung.com>
Wed, 8 Jan 2020 09:53:20 +0000
(18:53 +0900)
committer
Seunghun Lee
<shiin.lee@samsung.com>
Wed, 8 Jan 2020 09:53:20 +0000
(18:53 +0900)
Change-Id: I0fb210b41a190fdc91ba55c49d43a2e43b8c7a10
src/bin/e_info_client.c
patch
|
blob
|
history
diff --git
a/src/bin/e_info_client.c
b/src/bin/e_info_client.c
index 9f9e4bdfff4d2f7a7514d686dd5a1654b553b99c..5f4649860bd81862dce0ec0736f3e10565ec2dbf 100644
(file)
--- a/
src/bin/e_info_client.c
+++ b/
src/bin/e_info_client.c
@@
-1504,7
+1504,11
@@
_directory_make(char *type, char *path)
else if (len > 0)
snprintf(dir, sizeof(dir), "%s/%s", curdir, path);
else
- return NULL;
+ {
+ free(buf);
+ free(fullpath);
+ return NULL;
+ }
}
else
snprintf(dir, sizeof(dir), "%s", curdir);