Summary: | ASTERISK-08196: memory leak , ast_frdup called without free and passthrough codecs used. | ||
Reporter: | Ed Guy (edguy3) | Labels: | |
Date Opened: | 2006-11-27 19:47:00.000-0600 | Date Closed: | 2006-11-29 10:54:57.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/RTP |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) etg_061127_rtp_c_leak.patch | |
Description: | When using h.261, h.263, G.723.1, LPC10, and SPEEX codecs, rtp.c creates a copy of certain frams. These copies are not freed which results in significant process memory growth. ****** ADDITIONAL INFORMATION ****** Not sure why frame is duplicated, but after discussion with oej, recommendation was to leave frdup in place and free the memory before returning from the function. Attached patch frees this memory as described. (extensive testing has been done using a local modification for another codec..) | ||
Comments: | By: Joshua C. Colp (jcolp) 2006-11-29 10:54:57.000-0600 Fixed in 1.2 as of revision 48106, 1.4 as of revision 48107, and trunk as of revision 48108. Thanks Ed! |