Please write as:
<pre>
if (c != NULL)
    free(c);
</pre>