]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Memory leak
authorTilghman Lesher <tilghman@meg.abyt.es>
Sun, 24 Aug 2008 16:26:48 +0000 (16:26 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sun, 24 Aug 2008 16:26:48 +0000 (16:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@139707 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cdr/cdr_pgsql.c

index df929ce431ffcfcec7813bb4e9984ed4acf4e446..50d404936953570a363c59098a3bf512a8a6681f 100644 (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;
                        }
                }