Memory leak

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@139707 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2008-08-24 16:26:48 +00:00
parent a88af95df4
commit 8be98abf79

View File

@@ -292,6 +292,8 @@ static int pgsql_log(struct ast_cdr *cdr)
conn = NULL;
connected = 0;
ast_mutex_unlock(&pgsql_lock);
ast_free(sql);
ast_free(sql2);
return -1;
}
}