Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Patch
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: freeswitch-core
-
Platform:Linux x86/gcc
-
FreeSWITCH GIT Revision:13748
-
Reproduced with GIT HEAD?:yes
Attached updated patch fixes a couple of memory leaks.
==19720== Invalid read of size 1
==19720== at 0x4C240A4: strlen (mc_replace_strmem.c:242)
==19720== by 0x61AF9AD: vfprintf (in /lib/libc-2.9.so)
==19720== by 0x61D043E: vasprintf (in /lib/libc-2.9.so)
==19720== by 0x50F7829: switch_vasprintf (switch_apr.c:940)
==19720== by 0x51626C8: switch_log_vprintf (switch_log.c:312)
==19720== by 0x51623ED: switch_log_printf (switch_log.c:265)
==19720== by 0x5160051: init_upnp (switch_nat.c:118)
==19720== by 0x5160D43: switch_nat_init (switch_nat.c:401)
==19720== by 0x511FA58: switch_core_init (switch_core.c:1236)
==19720== by 0x51202D6: switch_core_init_and_modload (switch_core.c:1421)
==19720== by 0x402CDF: main (switch.c:707)
==19720== Address 0x733183a is 0 bytes after a block of size 2,970 alloc'd
==19720== at 0x4C23A51: realloc (vg_replace_malloc.c:429)
==19720== by 0x517B3A0: miniwget2 (miniwget.c:136)
==19720== by 0x517B644: miniwget (miniwget.c:206)
==19720== by 0x515FFF7: init_upnp (switch_nat.c:114)
==19720== by 0x5160D43: switch_nat_init (switch_nat.c:401)
==19720== by 0x511FA58: switch_core_init (switch_core.c:1236)
==19720== by 0x51202D6: switch_core_init_and_modload (switch_core.c:1421)
==19720== by 0x402CDF: main (switch.c:707)