Message ID | 20240627130552.80610-1-r.smirnov@omp.ru |
---|---|
State | New |
Headers | show |
Series | [BlueZ,v1] media: fix memory leak in endpoint_init_pac() | expand |
diff --git a/profiles/audio/media.c b/profiles/audio/media.c index b5644736a..746e538fc 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; }