projects
/
platform
/
core
/
system
/
crash-worker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2db95a4
)
Free 'hash_str_full' only if it was allocated
57/297957/1
accepted/tizen_8.0_unified
accepted/tizen/8.0/unified/20231005.093732
accepted/tizen/unified/20230830.170554
tizen_8.0_m2_release
author
Sung-hun Kim
<sfoon.kim@samsung.com>
Tue, 29 Aug 2023 06:45:35 +0000
(15:45 +0900)
committer
Sung-hun Kim
<sfoon.kim@samsung.com>
Tue, 29 Aug 2023 06:46:15 +0000
(15:46 +0900)
Change-Id: Ided519be8f5a6145d0ea018fa37a0f5a7ef7a213
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
src/crash-stack/crash-stack.c
patch
|
blob
|
history
diff --git
a/src/crash-stack/crash-stack.c
b/src/crash-stack/crash-stack.c
index
b8b93c4
..
2eb6e98
100644
(file)
--- a/
src/crash-stack/crash-stack.c
+++ b/
src/crash-stack/crash-stack.c
@@
-286,7
+286,8
@@
static void __print_hash(Callstack *callstack, json_object *jobj, struct addr_no
out:
if (ctx)
EVP_MD_CTX_destroy(ctx);
- free(hash_str_full);
+ if (hash_str_full)
+ free(hash_str_full);
}
void callstack_constructor(Callstack *callstack)