Fix memory leak 47/128747/1 accepted/tizen/unified/20170512.023657 submit/tizen/20170511.114242 tizen_4.0.m1_release
authorSuyeon Hwang <stom.hwang@samsung.com>
Thu, 11 May 2017 07:55:02 +0000 (16:55 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Thu, 11 May 2017 07:55:02 +0000 (16:55 +0900)
Change-Id: Icc92e52923df7a227936719dde8cf14ac4ade0dc
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/sttd_client_data.c

index 4ea6667..f89349a 100644 (file)
@@ -103,6 +103,10 @@ int sttd_client_add(int pid, int uid)
 
        if (NULL == g_client_list) {
                SLOG(LOG_ERROR, TAG_STTD, "[Client Data ERROR] Fail to add new client");
+
+               free(info);
+               info = NULL;
+
                return STTD_ERROR_OPERATION_FAILED;
        }