ecore_audio: Fix possible memory leak in pulse main loop integration
authorDaniel Willmann <d.willmann@samsung.com>
Fri, 19 Apr 2013 12:10:49 +0000 (13:10 +0100)
committerDaniel Willmann <d.willmann@samsung.com>
Fri, 19 Apr 2013 12:43:52 +0000 (13:43 +0100)
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
src/lib/ecore_audio/ecore_audio_pulse_ml.c

index 67dd96b..b9ce552 100644 (file)
@@ -145,6 +145,7 @@ _ecore_pa_time_new(pa_mainloop_api *api, const struct timeval *tv, pa_time_event
    if (gettimeofday(&now, NULL) == -1)
      {
         ERR("Failed to get the current time!");
+        free(event);
         return NULL;
      }