projects
/
platform
/
core
/
system
/
faultd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f2e550
)
Fix recursive str freeing on error
47/166647/2
author
Konrad Kuchciak
<k.kuchciak@samsung.com>
Thu, 11 Jan 2018 09:09:31 +0000
(10:09 +0100)
committer
Konrad Kuchciak
<k.kuchciak@samsung.com>
Thu, 11 Jan 2018 10:02:31 +0000
(11:02 +0100)
Change-Id: Ib90021823e310f7a2ace329a8269382d01678334
src/util/common.c
patch
|
blob
|
history
diff --git
a/src/util/common.c
b/src/util/common.c
index e651625e57642eb248ac9bdf945dc9f44929f1f9..4cda7e63dc0d8cc181dc0e0fbe5860ddb8fc0a07 100644
(file)
--- a/
src/util/common.c
+++ b/
src/util/common.c
@@
-407,6
+407,7
@@
int faultd_object_to_string(char **str, struct faultd_object *parent, int indent
error:
free(*str);
+ *str = NULL;
return -ENOMEM;
}