Diff between 2ebb415b12c48a727b106b6f28452cc430996964 and bf4ec513929bda951f54cc73fabbee3a7a12e3c7

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 b564473..746e538 100644
--- a/profiles/audio/media.c
+++ b/profiles/audio/media.c
@@ -1280,6 +1280,7 @@ static bool endpoint_init_pac(struct media_endpoint *endpoint, uint8_t type,
 	if (asprintf(&name, "%s:%s", endpoint->sender, endpoint->path) < 0) {
 		error("Could not allocate name for pac %s:%s",
 				endpoint->sender, endpoint->path);
+		free(name);
 		return false;
 	}