From f243a81f94041fc723bb7f309f48a93f1a2fa116 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 13 Dec 2012 14:46:15 +0000 Subject: [PATCH] another leak on failure SVN revision: 80872 --- src/modules/mixer/serial.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/mixer/serial.c b/src/modules/mixer/serial.c index df4147812..0ec7203ec 100644 --- a/src/modules/mixer/serial.c +++ b/src/modules/mixer/serial.c @@ -61,7 +61,7 @@ deserialize_sink(Pulse *conn __UNUSED__, Pulse_Tag *tag, Eina_Bool source) uint32_t owner_module, monitor_source, flags, base_volume, state, n_volume_steps, card, n_ports; uint64_t latency, configured_latency; const char *monitor_source_name, *driver; - Eina_Hash *props; + Eina_Hash *props = NULL; unsigned int x; monitor_source_name = driver = NULL; @@ -120,6 +120,7 @@ deserialize_sink(Pulse *conn __UNUSED__, Pulse_Tag *tag, Eina_Bool source) return sink; error: pulse_sink_free(sink); + eina_hash_free(props); return NULL; }