cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e319e702a1262ab5a78eda2bb3eadcb8a2061ca5

commit e319e702a1262ab5a78eda2bb3eadcb8a2061ca5
Author: kabeer khan <[email protected]>
Date:   Wed Dec 10 11:19:18 2014 +0100

    ecore_audio: fix memory leak in ecore_audio_pulse.
    
    Summary: Signed-off-by: kabeer khan <[email protected]>
    
    @fix
    
    Reviewers: devilhorns, cedric
    
    Reviewed By: cedric
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D1761
    
    Signed-off-by: Cedric BAIL <[email protected]>
---
 src/lib/ecore_audio/ecore_audio_pulse.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/ecore_audio/ecore_audio_pulse.c 
b/src/lib/ecore_audio/ecore_audio_pulse.c
index 0db00cc..099491c 100644
--- a/src/lib/ecore_audio/ecore_audio_pulse.c
+++ b/src/lib/ecore_audio/ecore_audio_pulse.c
@@ -148,6 +148,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;
      }
 

-- 


Reply via email to