diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-07-27 19:39:13 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-07-27 19:39:13 +0000 |
commit | 440953e6cde345de81bc604cfa85e36b403e5427 (patch) | |
tree | 5dc3c8ce8df3ff7ea6253c9e76cea4db5fa6ac9f /src/backend/parser/parse_expr.c | |
parent | 51e46d14f81620f4d5491888fec5f2bc8328b55b (diff) | |
download | postgresql-440953e6cde345de81bc604cfa85e36b403e5427.tar.gz postgresql-440953e6cde345de81bc604cfa85e36b403e5427.zip |
Tom, happier with the attached patch?
I'd have to disagree with regards to the memory leaks not being worth
a mention - any such leak can cause problems when the PostgreSQL
installation is either unattended, long-living andor has very high
connection levels. Half a kilobyte on start-up isn't negligible in
this light.
Regards, Lee.
Tom Lane writes:
> Lee Kindness <lkindness@csl.co.uk> writes:
> > Guys, attached is a patch to fix two memory leaks on start-up.
>
> I do not like the changes to miscinit.c. In the first place, it is not
> a "memory leak" to do a one-time allocation of state for a proc_exit
> function. A bigger complaint is that your proposed change introduces
> fragile coupling between CreateLockFile and its callers, in order to
> save no resources worth mentioning. More, it introduces an assumption
> that the globals directoryLockFile and socketLockFile don't change while
> the postmaster is running. UnlinkLockFile should unlink the file that
> it was originally told to unlink, regardless of what happens to those
> globals.
>
> If you are intent on spending code to free stuff just before the
> postmaster exits, a better fix would be for UnlinkLockFile to free its
> string argument after using it.
Lee Kindness
Diffstat (limited to 'src/backend/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions