mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
ucm: fix memory leaks for cdev, bin-file and tlv elements
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
86643bc9a9
commit
40aef87f1e
1 changed files with 7 additions and 0 deletions
|
|
@ -307,7 +307,14 @@ void uc_mgr_free_sequence_element(struct sequence_element *seq)
|
|||
if (seq == NULL)
|
||||
return;
|
||||
switch (seq->type) {
|
||||
case SEQUENCE_ELEMENT_TYPE_CDEV:
|
||||
free(seq->data.cdev);
|
||||
break;
|
||||
case SEQUENCE_ELEMENT_TYPE_CSET:
|
||||
case SEQUENCE_ELEMENT_TYPE_CSET_BIN_FILE:
|
||||
case SEQUENCE_ELEMENT_TYPE_CSET_TLV:
|
||||
free(seq->data.cset);
|
||||
break;
|
||||
case SEQUENCE_ELEMENT_TYPE_EXEC:
|
||||
free(seq->data.exec);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue