diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-03-05 05:54:07 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-03-05 05:54:07 +0000 |
commit | 66cd6a0fb2711b9656d5c3872f7a673b70a82818 (patch) | |
tree | f8998aaec9f41eca9178f7d2e6f98775f7ed9fad /src/backend/access/gist/gist.c | |
parent | a8bd7e1c6e026678019b2f25cffc0a94ce62b24b (diff) | |
download | postgresql-66cd6a0fb2711b9656d5c3872f7a673b70a82818.tar.gz postgresql-66cd6a0fb2711b9656d5c3872f7a673b70a82818.zip |
Currently, contrib/oid2name doesn't bother to free() the memory that it
malloc()'s. This isn't too serious (because oid2name is a short-lived
utility, so the memory will soon be returned to the OS on process
termination), but I still think it's poor style.
This patch changes oid2name so that it allocates memory on the stack
where possible and free()s the remaining heap-allocated memory. The
patch also fixes a typo a comment and adds 'const' qualifiers to a few
'char *' function parameters.
Neil Conway
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions