Re: [PATCH] use xrealloc in help.c
- From
- Morten Welinder <mwelinder@gmail.com>
- Date
- Mar 27, 2007, 22:40 UTC
- 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.