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.
1 file changed