Skip to content

Commit 5461d36

Browse files
committed
Fix resource leak in initdb -X option
When creating the symlink for the xlog directory, free the string which stores the link location. Not really an issue but it doesn't hurt to be good about this- prior cleanups have fixed similar issues. Leak found by the Coverity scanner. Not back-patching as I don't see it being worth the code churn.
1 parent cec62ef commit 5461d36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/initdb/initdb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3309,6 +3309,7 @@ create_xlog_symlink(void)
33093309
fprintf(stderr, _("%s: symlinks are not supported on this platform"));
33103310
exit_nicely();
33113311
#endif
3312+
free(linkloc);
33123313
}
33133314
}
33143315

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy