Memory leak in coreaudio_dev.c

SV
Samuel Vinson
Sun, Oct 10, 2010 8:34 AM

Hello,

There is a memory leak in ca_stream_get_cap function (coreaudio_dev.c).

When we search AudioRoute (kAudioSessionProperty_AudioRoute), iOS
allocates memory and this memory is never freed.

We have to call CFRelease(route) before return PJ_SUCCESS

Regards

Samuel

Hello, There is a memory leak in ca_stream_get_cap function (coreaudio_dev.c). When we search AudioRoute (kAudioSessionProperty_AudioRoute), iOS allocates memory and this memory is never freed. We have to call CFRelease(route) before return PJ_SUCCESS Regards Samuel
M
Ming
Sun, Oct 10, 2010 9:54 AM

Hi Samuel,

Thanks for the report, we will fix this immediately.

Best regards,
Ming

On Sun, Oct 10, 2010 at 4:34 PM, Samuel Vinson samuelv@laposte.net wrote:

Hello,

There is a memory leak in ca_stream_get_cap function (coreaudio_dev.c).

When we search AudioRoute (kAudioSessionProperty_AudioRoute), iOS allocates
memory and this memory is never freed.

We have to call CFRelease(route) before return PJ_SUCCESS

Regards

Samuel


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi Samuel, Thanks for the report, we will fix this immediately. Best regards, Ming On Sun, Oct 10, 2010 at 4:34 PM, Samuel Vinson <samuelv@laposte.net> wrote: > Hello, > > There is a memory leak in ca_stream_get_cap function (coreaudio_dev.c). > > When we search AudioRoute (kAudioSessionProperty_AudioRoute), iOS allocates > memory and this memory is never freed. > > We have to call CFRelease(route) before return PJ_SUCCESS > > > Regards > > Samuel > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >