Fix double free 73/223773/1 submit/tizen/20200204.015346
authorDaehyeon Jung <darrenh.jung@samsung.com>
Tue, 4 Feb 2020 01:39:37 +0000 (10:39 +0900)
committerDaehyeon Jung <darrenh.jung@samsung.com>
Tue, 4 Feb 2020 01:40:12 +0000 (10:40 +0900)
Change-Id: I8dd565462ff0f4a8f4f16b622db06aa2aa3d2abf
Signed-off-by: Daehyeon Jung <darrenh.jung@samsung.com>
lib/src/shortcut_internal.c

index 5782a09..ecb2328 100644 (file)
@@ -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;
        }