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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.