From e319e702a1262ab5a78eda2bb3eadcb8a2061ca5 Mon Sep 17 00:00:00 2001 From: kabeer khan Date: Wed, 10 Dec 2014 11:19:18 +0100 Subject: [PATCH] ecore_audio: fix memory leak in ecore_audio_pulse. Summary: Signed-off-by: kabeer khan @fix Reviewers: devilhorns, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1761 Signed-off-by: Cedric BAIL --- 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 0db00ccf4a..099491c1fd 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; }