From: Daehyeon Jung Date: Tue, 4 Feb 2020 01:39:37 +0000 (+0900) Subject: Fix double free X-Git-Tag: submit/tizen/20200204.015346^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F73%2F223773%2F1;p=platform%2Fcore%2Fappfw%2Fshortcut.git Fix double free Change-Id: I8dd565462ff0f4a8f4f16b622db06aa2aa3d2abf Signed-off-by: Daehyeon Jung --- diff --git a/lib/src/shortcut_internal.c b/lib/src/shortcut_internal.c index 5782a09..ecb2328 100644 --- a/lib/src/shortcut_internal.c +++ b/lib/src/shortcut_internal.c @@ -588,6 +588,7 @@ int _ready_to_send(char **appid, char **request_id) if (*request_id == NULL) { SHORTCUT_ERR("Can't get request_id"); free(*appid); + *appid = NULL; return SHORTCUT_ERROR_OUT_OF_MEMORY; }