ime: free allocated variables before return statement
[platform/core/uifw/libds-tizen.git] / src / text_input / text_input.c
index 05adda7..d25b1a4 100644 (file)
@@ -448,6 +448,7 @@ text_input_manager_handle_create_text_input(struct wl_client *wl_client,
     if (text_input->resource == NULL) {
         ds_err("text_input. wl_resource_create() failed.");
         wl_client_post_no_memory(wl_client);
+        free(text_input);
         return;
     }
     wl_resource_set_implementation(text_input->resource, &text_input_impl,