Free memory properly in pg_restore.c

Thinko in commit 39729ec01d. Mea maxima culpa.

Per Mahendra Singh Thalor <mahi6run@gmail.com>
pull/210/head
Andrew Dunstan 8 months ago
parent 78637a8be2
commit f09088a01d
  1. 2
      src/bin/pg_dump/pg_restore.c

@ -906,7 +906,7 @@ read_one_statement(StringInfo inBuf, FILE *pfile)
appendStringInfoChar(inBuf, (char) '\n');
}
destroyStringInfo(&q);
pg_free(q.data);
/* No input before EOF signal means time to quit. */
if (c == EOF && inBuf->len == 0)

Loading…
Cancel
Save