Remove memory leak possibility 75/139275/1 accepted/tizen/unified/20170721.201720 submit/tizen/20170721.005824
authorShinwoo Kim <cinoo.kim@samsung.com>
Tue, 18 Jul 2017 07:28:23 +0000 (16:28 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Tue, 18 Jul 2017 07:29:31 +0000 (16:29 +0900)
Change-Id: I9c9ebb825c5a93a82e840e3ba14dd67684e75dc4

src/e_screen_reader_gestures.c

index 8925ce2..014181c 100644 (file)
@@ -528,6 +528,7 @@ end:
              if (!(event2 = malloc(sizeof(Ecore_Event_Mouse_Button))))
                {
                   DBG("NOT ENOUGH MEMORY");
+                  free(event1);
                   return ;
                }
              memcpy(event2, ev, sizeof(Ecore_Event_Mouse_Button));