diff mbox

[v2,03/11] sbase : fixed missing free

Message ID 22469549.61261411446034864.JavaMail.weblogic@epv6ml10 (mailing list archive)
State Accepted
Delegated to: Takashi Iwai
Headers show

Commit Message

Renu Tyagi Sept. 23, 2014, 4:20 a.m. UTC
Signed-off-by: renu tyagi <renu.tyagi@samsung.com>
---
 modules/mixer/simple/sbase.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

--
1.7.1
diff mbox

Patch

diff --git a/modules/mixer/simple/sbase.c b/modules/mixer/simple/sbase.c
index 97feee8..bb2f59d 100644
--- a/modules/mixer/simple/sbase.c
+++ b/modules/mixer/simple/sbase.c
@@ -377,6 +377,7 @@  static int simple_event_add1(snd_mixer_class_t *class,
                if (ctype != SND_CTL_ELEM_TYPE_BOOLEAN) {
                      __invalid_type:
                        snd_mixer_selem_id_free(id);
+                       free(hsimple);
                        return -EINVAL;
                }
                break;