Fix memory leak issue 71/175471/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 9 Apr 2018 09:50:55 +0000 (18:50 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 10 Apr 2018 12:08:56 +0000 (21:08 +0900)
Change-Id: I4edfd884552be40ddd3be851a2c20ed450c811e4
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/w-input-selector.cpp

index a251f1e..1537d24 100755 (executable)
@@ -1020,8 +1020,10 @@ unsigned int _update_smartreply_items(void *user_data)
                                }
                        }
 
-                       if (matched == true)
+                       if (matched == true) {
+                               free(reply);
                                continue;
+                       }
 
                        elm_genlist_item_append(app_data->genlist,
                                                itc,