diff options
| author | Bruce Momjian <bruce@momjian.us> | 1997-12-29 05:13:57 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 1997-12-29 05:13:57 +0000 |
| commit | a544b605e25cf4dc8e107a697b8cc28c8132e125 (patch) | |
| tree | 242854545cbb6e71683e47bd6a00644cb65e96a0 /src/backend/parser/analyze.c | |
| parent | a1dd40905304bacfaf4a1bad6a45114e8ccc9e8d (diff) | |
| download | postgresql-a544b605e25cf4dc8e107a697b8cc28c8132e125.tar.gz | |
Change some mallocs to palloc.
Diffstat (limited to 'src/backend/parser/analyze.c')
| -rw-r--r-- | src/backend/parser/analyze.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c index 5837fa8fb7..38be671962 100644 --- a/src/backend/parser/analyze.c +++ b/src/backend/parser/analyze.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.59 1997/12/29 04:31:28 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.60 1997/12/29 05:13:35 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -51,7 +51,6 @@ List *extras = NIL; * Returns a list of transformed parse trees. Optimizable statements are * all transformed to Query while the rest stays the same. * - * CALLER is responsible for freeing the QueryTreeList* returned */ QueryTreeList * parse_analyze(List *pl) @@ -82,7 +81,7 @@ parse_analyze(List *pl) pl = lnext(pl); if (pstate->p_target_relation != NULL) heap_close(pstate->p_target_relation); - free(pstate); + pfree(pstate); } return result; |
