]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix leak
authorMathieu Rene <mrene@avgs.ca>
Fri, 27 Feb 2009 19:22:30 +0000 (19:22 +0000)
committerMathieu Rene <mrene@avgs.ca>
Fri, 27 Feb 2009 19:22:30 +0000 (19:22 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12330 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_async.c

index f1a661b1d9012580c7d19930cca0d9649f0416f0..fa6f47d000034f3a2b0c6152133183d05e31f3de 100644 (file)
@@ -1133,6 +1133,7 @@ static switch_bool_t inband_dtmf_generate_callback(switch_media_bug_t *bug, void
                                }
                                pvt->ts.duration = duration;
                                teletone_run(&pvt->ts, buf);
+                               switch_safe_free(pop);
                        }
 
                        if (switch_buffer_inuse(pvt->audio_buffer) && (bytes = switch_buffer_read(pvt->audio_buffer, frame->data, frame->datalen))) {