Re: [cc65] Need some help with a memory leak

From: Johan Kotlinski <kotlinski1gmail.com>
Date: 2010-05-05 00:57:09
> if(currentNode->dir_entry != NULL)
> {
>    free(currentNode->dir_entry);
> }

One suggestion: You could remove this unnecessary NULL check. free()
does nothing when passed a null pointer.

Johan
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed May 5 00:57:35 2010

This archive was generated by hypermail 2.1.8 : 2010-05-05 00:57:38 CEST