e_input_device: added missing free 98/163898/2
authorGwanglim Lee <gl77.lee@samsung.com>
Thu, 14 Dec 2017 02:54:14 +0000 (11:54 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Thu, 14 Dec 2017 02:55:48 +0000 (11:55 +0900)
Change-Id: Ib93eb9f3ff998f0fd9bacbcd795d90d66030cce4

src/bin/e_input_device.c

index f5fc532..d0ca4f3 100644 (file)
@@ -853,6 +853,8 @@ e_input_device_input_create_libinput_udev(E_Input_Device *dev)
      libinput_log_set_handler(input->libinput, NULL);
    else
      {
+        E_FREE(env);
+
         env = e_util_env_get(E_INPUT_ENV_LIBINPUT_LOG_EINA_LOG);
         if ((env) && (atoi(env) == 1))
           libinput_log_set_handler(input->libinput,
@@ -943,6 +945,8 @@ e_input_device_input_create_libinput_path(E_Input_Device *dev)
      libinput_log_set_handler(input->libinput, NULL);
    else
      {
+        E_FREE(env);
+
         env = e_util_env_get(E_INPUT_ENV_LIBINPUT_LOG_EINA_LOG);
         if ((env) && (atoi(env) == 1))
           libinput_log_set_handler(input->libinput,