projects
/
platform
/
core
/
appfw
/
pkgmgr-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fb24bf
)
Fix resource leak
39/155639/1
author
Semun Lee
<semun.lee@samsung.com>
Mon, 16 Oct 2017 01:53:19 +0000
(10:53 +0900)
committer
Semun Lee
<semun.lee@samsung.com>
Mon, 16 Oct 2017 01:53:19 +0000
(10:53 +0900)
Change-Id: Ie2836e64763f3c65de7441437d85e124c20b1488
Signed-off-by: Semun Lee <semun.lee@samsung.com>
src/pkgmgr-server.c
patch
|
blob
|
history
diff --git
a/src/pkgmgr-server.c
b/src/pkgmgr-server.c
index
ea9a444
..
38fdaa2
100644
(file)
--- a/
src/pkgmgr-server.c
+++ b/
src/pkgmgr-server.c
@@
-1365,14
+1365,13
@@
static int __process_getsize_sync(struct backend_job *job)
goto error;
}
+ job->extra_data = extra_getsize_info;
extra_getsize_info->getsize_fifo = strdup(fifo_path);
if (!extra_getsize_info->getsize_fifo) {
ERR("out of memory");
goto error;
}
- job->extra_data = extra_getsize_info;
-
if (mkfifo(extra_getsize_info->getsize_fifo, 0600) < 0) {
ERR("failed to mkfifo");
goto error;