Fix memory leak when calling endpoint to select capabilities
Fix memory leak when calling endpoint to select capabilities

When passing allocated memory to avdtp_service_cap_new it needs to be
freed since avdtp_service_cap_new copies the memory.

ComputeCycles/bluez,mapfau/bluez,ComputeCycles/bluez,pkarasev3/bluez,pstglia/external-bluetooth-bluez,pkarasev3/bluez,pstglia/external-bluetooth-bluez,pstglia/external-bluetooth-bluez,pstglia/external-bluetooth-bluez,silent-snowman/bluez,ComputeCycles/bluez,silent-snowman/bluez,mapfau/bluez,ComputeCycles/bluez,silent-snowman/bluez,pkarasev3/bluez,mapfau/bluez,mapfau/bluez,pkarasev3/bluez,silent-snowman/bluez