Commit: 3652e98d2bb6fe8d7ba5b66f9cd6403fca3995b7
Parent: d1360727086973f95f4a2eb457354a0b14ae401e
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-05-10 18:28:08
Tree: 394488f71f491e13ed4d3d4543b8b7ccb56f967e

media: Fix memory leak Error: RESOURCE_LEAK (CWE-772): [#def47] [important] profiles/audio/media.c:1278:2: alloc_arg: "asprintf" allocates memory that is stored into "name". [Note: The source code implementation of the function has been overridden by a builtin model.] profiles/audio/media.c:1291:2: noescape: Resource "name" is not freed or pointed-to in "bt_bap_add_vendor_pac". profiles/audio/media.c:1297:3: leaked_storage: Variable "name" going out of scope leaks the storage it points to. 1295| error("Unable to create PAC"); 1296| free(metadata); 1297|-> return false; 1298| } 1299|

Diffstat

M profiles/audio/media.c | 1 +

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

View Full Diff | Patch