aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2017-12-27 18:01:37 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2017-12-27 18:06:14 -0300
commitbe2343221fb74bde6b7445feeef32f7ea5cf2618 (patch)
tree6528f82d718104b4bb39a919804965ff0020f1dd /src/include
parentb726eaa37a59d0cae0be56457c9522db7288255d (diff)
downloadpostgresql-be2343221fb74bde6b7445feeef32f7ea5cf2618.tar.gz
postgresql-be2343221fb74bde6b7445feeef32f7ea5cf2618.zip
Protect against hypothetical memory leaks in RelationGetPartitionKey
Also, fix a comment that commit 8a0596cb656e made obsolete. Reported-by: Robert Haas Discussion: http://postgr.es/m/CA+TgmoYbpuUUUp2GhYNwWm0qkah39spiU7uOiNXLz20ASfKYoA@mail.gmail.com
Diffstat (limited to 'src/include')
-rw-r--r--src/include/access/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/access/hash.h b/src/include/access/hash.h
index ccdf9dff4bb..179ac97f876 100644
--- a/src/include/access/hash.h
+++ b/src/include/access/hash.h
@@ -338,7 +338,7 @@ typedef HashMetaPageData *HashMetaPage;
/*
* When a new operator class is declared, we require that the user supply
- * us with an amproc procudure for hashing a key of the new type, returning
+ * us with an amproc procedure for hashing a key of the new type, returning
* a 32-bit hash value. We call this the "standard" hash procedure. We
* also allow an optional "extended" hash procedure which accepts a salt and
* returns a 64-bit hash value. This is highly recommended but, for reasons