Remove hash_destroy calls in hash_create's failure paths. As noted by

Tom Lane <tgl@sss.pgh.pa.us>

Commit: c859294ca2eabf65c680fe311596388b36a5fcb8
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-08-14T12:39:55Z
Releases: 8.2.0
Remove hash_destroy calls in hash_create's failure paths.  As noted by
a Coverity warning, these are risky since the hashtable isn't necessarily
fully set up yet.  They're unnecessary anyway: a deletable hashtable
should be in a memory context that will be cleared following elog(ERROR).
Per report from Martijn van Oosterhout.

Files

PathChange+/−
src/backend/utils/hash/dynahash.c modified +1 −7