projects
/
platform
/
core
/
api
/
notification.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfde0b3
)
Fix memory leak
56/257356/1
author
hyunho
<hhstark.kang@samsung.com>
Fri, 23 Apr 2021 04:18:14 +0000
(13:18 +0900)
committer
hyunho
<hhstark.kang@samsung.com>
Fri, 23 Apr 2021 04:18:14 +0000
(13:18 +0900)
Change-Id: I980611696f69a7b95384ddaab691da1bfa8e3202
Signed-off-by: hyunho <hhstark.kang@samsung.com>
notification-ex/stub.cc
patch
|
blob
|
history
diff --git
a/notification-ex/stub.cc
b/notification-ex/stub.cc
index
7563eef
..
cd6b60a
100644
(file)
--- a/
notification-ex/stub.cc
+++ b/
notification-ex/stub.cc
@@
-1565,6
+1565,8
@@
extern "C" EXPORT_API int noti_ex_style_get_padding(noti_ex_style_h handle,
new (std::nothrow) Padding(*((*p)->GetPadding())));
if (padd == nullptr || padd->get() == nullptr) {
LOGE("Out-of-memory");
+ if (padd)
+ delete padd;
*padding = nullptr;
return NOTI_EX_ERROR_NONE;
}