Fix user-after-free bug.

Robert Haas <rhaas@postgresql.org>

Commit: 7f6fa29f18aa84743185ee7ada97f277459228a7
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-03-06T17:13:57Z
Releases: 10.0
Fix user-after-free bug.

Introduced by commit aea5d298362e881b13d95a48c5ae116879237389.

Patch from Amit Kapila.  Issue discovered independently by Amit Kapila
and Ashutosh Sharma.

Files

PathChange+/−
src/backend/postmaster/bgworker.c modified +4 −2