Memory leak in chat_play if using 's' option
This commit is contained in:
parent
412c182ee4
commit
d492b5daa5
|
@ -541,8 +541,8 @@ static void chat_handle_events(struct ast_channel *c, struct capi_pvt *i,
|
|||
capi_write_frame(iline, fr2);
|
||||
} else {
|
||||
ast_write(chan, fr2);
|
||||
ast_frfree(fr2);
|
||||
}
|
||||
ast_frfree(fr2);
|
||||
}
|
||||
capi_write_frame(i, f);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue