Skip to content

Commit f09088a

Browse files
committed
Free memory properly in pg_restore.c
Thinko in commit 39729ec. Mea maxima culpa. Per Mahendra Singh Thalor <mahi6run@gmail.com>
1 parent 78637a8 commit f09088a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_dump/pg_restore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ read_one_statement(StringInfo inBuf, FILE *pfile)
906906
appendStringInfoChar(inBuf, (char) '\n');
907907
}
908908

909-
destroyStringInfo(&q);
909+
pg_free(q.data);
910910

911911
/* No input before EOF signal means time to quit. */
912912
if (c == EOF && inBuf->len == 0)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy