Fix resource leak issue detected by static analysis tool 80/295480/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 10 Jul 2023 02:32:49 +0000 (11:32 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 10 Jul 2023 02:32:49 +0000 (11:32 +0900)
Change-Id: Id4fe17c18883c67fa0f8982981047fb1aba49c8b
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/e_mod_main.c

index 274ca33..db4203c 100644 (file)
@@ -692,6 +692,8 @@ feed_key_event(const char *keyname, const char *key, const char *string, int key
         E_Input_Event_Source *input_event_source = e_input_event_source_get();
         if (input_event_source)
           e_input_event_add(input_event_source, state ? ECORE_EVENT_KEY_DOWN : ECORE_EVENT_KEY_UP, e, _e_keyevent_free, NULL);
+        else
+          _e_keyevent_free(NULL, e);
      }
 }