asdfuser pushed a commit to branch master.

commit fe292a34fba89e40287ba8b4d364edbe5d87ff3a
Author: Daniel Willmann <[email protected]>
Date:   Fri Apr 19 13:10:49 2013 +0100

    ecore_audio: Fix possible memory leak in pulse main loop integration
    
    Signed-off-by: Daniel Willmann <[email protected]>
---
 src/lib/ecore_audio/ecore_audio_pulse_ml.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/ecore_audio/ecore_audio_pulse_ml.c 
b/src/lib/ecore_audio/ecore_audio_pulse_ml.c
index 67dd96b..b9ce552 100644
--- a/src/lib/ecore_audio/ecore_audio_pulse_ml.c
+++ b/src/lib/ecore_audio/ecore_audio_pulse_ml.c
@@ -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;
      }
 

-- 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Reply via email to