aboutsummaryrefslogtreecommitdiffstats
path: root/cdr
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-24 16:26:48 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-24 16:26:48 +0000
commit6a7394d3c36c101ba9637c493b55fb2f299c1140 (patch)
treed06fb9beb564eaef4c722416a724672dbe155b45 /cdr
parent980a351bb342fb08eb02987e0f30622c44f12d33 (diff)
Memory leak
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@139707 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr')
-rw-r--r--cdr/cdr_pgsql.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cdr/cdr_pgsql.c b/cdr/cdr_pgsql.c
index df929ce43..50d404936 100644
--- a/cdr/cdr_pgsql.c
+++ b/cdr/cdr_pgsql.c
@@ -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;
}
}