fix the memory leak 91/280991/1 accepted/tizen/unified/20220908.124855
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 7 Sep 2022 08:16:27 +0000 (17:16 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 7 Sep 2022 09:50:58 +0000 (18:50 +0900)
Change-Id: I58f5eb7d5ec611e41d78e2110a1d20fe1ee6b0da

src/input_method/input_method.c

index 0c16b28..d2e6cbb 100644 (file)
@@ -228,7 +228,8 @@ ds_tizen_input_method_create_context(struct ds_tizen_input_method *input_method)
 
     binding = input_method->resource;
     if (!binding) {
-        ds_err("context. there is no wl_resource_create() failed.");
+        ds_err("context. there is no resource of input_method.");
+        free(context);
         return NULL;
     }
     context->resource = wl_resource_create(wl_resource_get_client(binding),