From: mk5004.lee Date: Tue, 7 May 2019 10:27:15 +0000 (+0900) Subject: Fix DANGLING_POINTER.STAT X-Git-Tag: submit/tizen/20190507.234133~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7814a54da7046f7502f192c4e6c014bc844f73a;p=platform%2Fcore%2Fapi%2Fnotification.git Fix DANGLING_POINTER.STAT Change-Id: I89332c2f491129263abb943892ff5a8c6e4a4fb0 Signed-off-by: mk5004.lee --- diff --git a/notification/src/notification.c b/notification/src/notification.c index 698b1505..7ad2cde6 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)