Commit: cc8e6ef63509ff69f8b2399802c6de320e957c2b
Parent: 1764cea5c7fd4f4a7af06c183822158c1e4c6fe7
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-06-03 22:08:57
Tree: a7d28501b627e8f90dd43d614b7506608ea0c9c0

bap: Fix more memory leaks on error Error: RESOURCE_LEAK (CWE-772): [#def32] [important] profiles/audio/bap.c:1178:5: leaked_storage: Variable "path" going out of scope leaks the storage it points to. 1176| free(l3_caps); 1177| ret = false; 1178|-> goto group_fail; 1179| } 1180| Error: RESOURCE_LEAK (CWE-772): [#def33] [important] profiles/audio/bap.c:1199:5: leaked_storage: Variable "path" going out of scope leaks the storage it points to. 1197| 1198| if (matched_lpac == NULL || merged_caps == NULL) 1199|-> continue; 1200| 1201| create_stream_for_bis(bap_data, matched_lpac, qos,

Diffstat

M profiles/audio/bap.c | 5 ++++-

1 files changed, 4 insertions(+), 1 deletions(-)

View Full Diff | Patch