Preserve errno across free().

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 2209c0f8618bbed257975055e017efab139e3fa3
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2014-04-04T23:07:37Z
Releases: 9.4.0
Preserve errno across free().

Dept. of second thoughts: free() isn't guaranteed not to change errno.
Make sure we report the right error if getcwd() fails.

Files

PathChange+/−
src/port/path.c modified +3 −0