Fix memory leak of sig_xxx private structures.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@217332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2009-09-08 23:37:57 +00:00
parent 8562029476
commit fd561e871f
5 changed files with 41 additions and 4 deletions

View File

@@ -3060,6 +3060,19 @@ struct sig_pri_chan *sig_pri_chan_new(void *pvt_data, struct sig_pri_callback *c
return p;
}
/*!
* \brief Delete the sig_pri private channel structure.
* \since 1.6.3
*
* \param doomed sig_pri private channel structure to delete.
*
* \return Nothing
*/
void sig_pri_chan_delete(struct sig_pri_chan *doomed)
{
ast_free(doomed);
}
static void build_status(char *s, size_t len, int status, int active)
{
if (!s || len < 1) {