On Fri, 3 Mar 2017 15:24:53 +0900 Michael Paquier <michael.paqu...@gmail.com> wrote: > > + /* > + * No space found, file content is corrupted. Return > NULL to the > + * caller and inform him on the situation. > + */ > + elog(ERROR, > + "missing space character in \"%s\"", > LOG_METAINFO_DATAFILE); > + break; > There is no need to issue a break after a elog(ERROR).
There's 2 cases of issuing a break after a elog(ERROR), both in the same loop. And the comment could then be amended as well to just: No space found, file content is corrupted Because (I presume) there's no returning of any value going on. But if the code does not exit the loop then before calling elog(ERROR), shouldn't it also call FreeFile(fd)? Regards, Karl <k...@meme.com> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers