aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholbrcholberton@gmail.com>2020-06-03 09:47:50 -0400
committerTaylor Holberton <taylorcholbrcholberton@gmail.com>2020-06-03 09:47:50 -0400
commitab224a09018d7547eff304c44e4b2334d87aea3b (patch)
treee9e34662a898022364fa797692e22471d2bc7a00 /src
parent1a53e3a9daa9ea7226c2884c6ad45c31a146c9fe (diff)
Fix memory leak
Diffstat (limited to 'src')
-rw-r--r--src/mixer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mixer.c b/src/mixer.c
index c8480d7..94aa019 100644
--- a/src/mixer.c
+++ b/src/mixer.c
@@ -133,6 +133,8 @@ static void mixer_grp_close(struct mixer *mixer, struct mixer_ctl_group *grp)
free(grp->ctl);
}
+ free(grp);
+
mixer->is_card_info_retrieved = false;
}