realloc potential memory leak?
"raphael.huck" <[email protected]>
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Message-ID | <[email protected]> |
Line 164 of 'cgi/html.c', there is: parts = (struct _parts *) realloc (parts, sizeof(struct _parts) * part_count); Couldn't this be a potential memory leak in case 'realloc' fails and returns 'NULL'? Then the reference to 'parts' will be lost, resulting in a memory leak.