another leak on failure
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 13 Dec 2012 14:46:15 +0000 (14:46 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 13 Dec 2012 14:46:15 +0000 (14:46 +0000)
SVN revision: 80872

src/modules/mixer/serial.c

index df41478..0ec7203 100644 (file)
@@ -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;
 }