Fix memory leak of app id in fill response handle 27/310327/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 25 Apr 2024 10:40:16 +0000 (19:40 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 25 Apr 2024 10:56:58 +0000 (19:56 +0900)
Change-Id: Idfe21f6599ff38269927aa1986d6a344790be2b2
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
common/autofill_fill_response.c

index 7ce0bd1..4b97b25 100644 (file)
@@ -53,6 +53,11 @@ EXPORT_API int autofill_fill_response_destroy(autofill_fill_response_h h)
         return AUTOFILL_ERROR_INVALID_PARAMETER;
     }
 
+    if (h->app_id) {
+        free(h->app_id);
+        h->app_id = NULL;
+    }
+
     if (h->view_id) {
         free(h->view_id);
         h->view_id = NULL;