aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/vacuumlo/vacuumlo.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/vacuumlo/vacuumlo.c b/contrib/vacuumlo/vacuumlo.c
index 43130dca8af..ca0d3048b82 100644
--- a/contrib/vacuumlo/vacuumlo.c
+++ b/contrib/vacuumlo/vacuumlo.c
@@ -240,6 +240,12 @@ vacuumlo(const char *database, const struct _param * param)
fprintf(stderr, "Out of memory\n");
PQclear(res);
PQfinish(conn);
+ if (schema != NULL)
+ PQfreemem(schema);
+ if (schema != NULL)
+ PQfreemem(table);
+ if (schema != NULL)
+ PQfreemem(field);
return -1;
}
@@ -256,6 +262,9 @@ vacuumlo(const char *database, const struct _param * param)
PQclear(res2);
PQclear(res);
PQfinish(conn);
+ PQfreemem(schema);
+ PQfreemem(table);
+ PQfreemem(field);
return -1;
}
PQclear(res2);