summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-12-13 14:46:15 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-12-13 14:46:15 +0000
commitd191ac8cf98a465a8cc0039dcdcb36ee2c8a86f8 (patch)
treefc0f370b8f1b1961a904404bf55402207fadb306
parent2df04311c4c7dfcd885831407684ee613309c8ee (diff)
another leak on failure
SVN revision: 80872
-rw-r--r--serial.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/serial.c b/serial.c
index df41478..0ec7203 100644
--- a/serial.c
+++ b/serial.c
@@ -61,7 +61,7 @@ deserialize_sink(Pulse *conn __UNUSED__, Pulse_Tag *tag, Eina_Bool source)
61 uint32_t owner_module, monitor_source, flags, base_volume, state, n_volume_steps, card, n_ports; 61 uint32_t owner_module, monitor_source, flags, base_volume, state, n_volume_steps, card, n_ports;
62 uint64_t latency, configured_latency; 62 uint64_t latency, configured_latency;
63 const char *monitor_source_name, *driver; 63 const char *monitor_source_name, *driver;
64 Eina_Hash *props; 64 Eina_Hash *props = NULL;
65 unsigned int x; 65 unsigned int x;
66 66
67 monitor_source_name = driver = NULL; 67 monitor_source_name = driver = NULL;
@@ -120,6 +120,7 @@ deserialize_sink(Pulse *conn __UNUSED__, Pulse_Tag *tag, Eina_Bool source)
120 return sink; 120 return sink;
121error: 121error:
122 pulse_sink_free(sink); 122 pulse_sink_free(sink);
123 eina_hash_free(props);
123 return NULL; 124 return NULL;
124} 125}
125 126