Diff between d1360727086973f95f4a2eb457354a0b14ae401e and 3652e98d2bb6fe8d7ba5b66f9cd6403fca3995b7

Changed Files

File Additions Deletions Status
profiles/audio/media.c +1 -0 modified

Full Patch

diff --git a/profiles/audio/media.c b/profiles/audio/media.c
index 07147a2..4bbd584 100644
--- a/profiles/audio/media.c
+++ b/profiles/audio/media.c
@@ -1293,6 +1293,7 @@ static bool endpoint_init_pac(struct media_endpoint *endpoint, uint8_t type,
 				&data, metadata);
 	if (!endpoint->pac) {
 		error("Unable to create PAC");
+		free(name);
 		free(metadata);
 		return false;
 	}