diff options
author | mk5004.lee <mk5004.lee@samsung.com> | 2019-05-07 19:27:15 +0900 |
---|---|---|
committer | mk5004.lee <mk5004.lee@samsung.com> | 2019-05-07 19:27:15 +0900 |
commit | d7814a54da7046f7502f192c4e6c014bc844f73a (patch) | |
tree | e97ba8b0307648c0d8b210dc3c5cc6b8611fde58 | |
parent | cbd8f3ae20c7ff72dccadb6d6733b87d50026a8d (diff) | |
download | notification-d7814a54da7046f7502f192c4e6c014bc844f73a.tar.gz notification-d7814a54da7046f7502f192c4e6c014bc844f73a.tar.bz2 notification-d7814a54da7046f7502f192c4e6c014bc844f73a.zip |
Fix DANGLING_POINTER.STAT
Change-Id: I89332c2f491129263abb943892ff5a8c6e4a4fb0
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
-rw-r--r-- | notification/src/notification.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/notification/src/notification.c b/notification/src/notification.c index 698b150..7ad2cde 100644 --- a/notification/src/notification.c +++ b/notification/src/notification.c @@ -932,8 +932,10 @@ EXPORT_API int notification_set_sound(notification_h noti, free(noti->sound_path); noti->sound_path = strdup(path); - if (noti->priv_sound_path != NULL) + if (noti->priv_sound_path != NULL) { free(noti->priv_sound_path); + noti->priv_sound_path = NULL; + } priv_path = notification_check_file_path_is_private(noti->pkg_id, path); if (priv_path) |