Janitor: use ast_free to pair calls of ast_malloc and ast_calloc

Reported by: eliel
Patch by: eliel
Closes issue #11135


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88008 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2007-11-01 06:07:18 +00:00
parent c96c01cfd1
commit 97fe45ab93
2 changed files with 5 additions and 5 deletions

View File

@@ -815,7 +815,7 @@ static struct ast_conference *build_conf(char *confno, char *pin, char *pinadmin
ast_log(LOG_WARNING, "Unable to open pseudo device\n");
if (cnf->fd >= 0)
close(cnf->fd);
free(cnf);
ast_free(cnf);
cnf = NULL;
goto cnfout;
}