From: Morten Welinder Date: Tue, 27 Mar 2007 22:40:45 GMT Subject: Re: [PATCH] use xrealloc in help.c Message-ID: <118833cc0703271540l6615b413gd1df3dc5525a2d00@mail.gmail.com> In-Reply-To: <1175034608589-git-send-email-jbowes@dangerouslyinc.com> > - cmdname = realloc(cmdname, cmdname_alloc * sizeof(*cmdname)); > + cmdname = xrealloc(cmdname, cmdname_alloc * sizeof(*cmdname)); > if (!cmdname) > oom(); If you are using xrealloc, shouldn't kill the oom check here too? M.