mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
During parallel pg_dump, free commands from master
The command strings read by the child processes during parallel pg_dump, after being read and handled, were not being free'd. This patch corrects this relatively minor memory leak. Leak found by the Coverity scanner. Back patch to 9.3 where parallel pg_dump was introduced.
This commit is contained in:
parent
fb7c0ac42e
commit
8839e7362c
@ -922,6 +922,9 @@ WaitForCommands(ArchiveHandle *AH, int pipefd[2])
|
|||||||
exit_horribly(modulename,
|
exit_horribly(modulename,
|
||||||
"unrecognized command on communication channel: %s\n",
|
"unrecognized command on communication channel: %s\n",
|
||||||
command);
|
command);
|
||||||
|
|
||||||
|
/* command was pg_malloc'd and we are responsible for free()ing it. */
|
||||||
|
free(command);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user