diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/port/path.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/port/path.c b/src/port/path.c index 438b5296042..3484f2cb615 100644 --- a/src/port/path.c +++ b/src/port/path.c @@ -608,7 +608,10 @@ make_absolute_path(const char *path) } else { + int save_errno = errno; + free(buf); + errno = save_errno; #ifndef FRONTEND elog(ERROR, "could not get current working directory: %m"); #else |