From: Jihoon Kim Date: Thu, 25 Apr 2024 10:40:16 +0000 (+0900) Subject: Fix memory leak of app id in fill response handle X-Git-Tag: accepted/tizen/8.0/unified/20240426.172532~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F55%2F310355%2F1;p=platform%2Fcore%2Fuifw%2Fautofill.git Fix memory leak of app id in fill response handle Change-Id: Idfe21f6599ff38269927aa1986d6a344790be2b2 Signed-off-by: Jihoon Kim --- diff --git a/common/autofill_fill_response.c b/common/autofill_fill_response.c index 7ce0bd1..4b97b25 100644 --- a/common/autofill_fill_response.c +++ b/common/autofill_fill_response.c @@ -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;