reallocing without oom check in pg_regress - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject reallocing without oom check in pg_regress
Date
Msg-id 9FC7E603-9246-4C62-B466-A39CFAF454AE@yesql.se
Whole thread Raw
Responses Re: reallocing without oom check in pg_regress  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
In pg_regress we realloc() with the destination and source pointer being equal,
without checking for OOM.  While a fairly unlikely source of errors, is there a
reason not to use pg_realloc() there for hygiene?

--
Daniel Gustafsson        https://vmware.com/


Attachment

pgsql-hackers by date:

Previous
From: Melanie Plageman
Date:
Subject: GiST index build missing smgrimmedsync()?
Next
From: Alvaro Herrera
Date:
Subject: Re: convert libpq uri-regress tests to tap test