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 df929ce..50d4049 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;
                        }
                }