Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5461d36

Browse files
committed
Fix resource leak in initdb -X option
When creating the symlink for the xlog directory, free the stringwhich stores the link location. Not really an issue but it doesn'thurt to be good about this- prior cleanups have fixed similarissues.Leak found by the Coverity scanner.Not back-patching as I don't see it being worth the code churn.
1 parentcec62ef commit5461d36

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)

[8]ページ先頭

©2009-2025 Movatter.jp