Change if(x)free(x); to free(x);

This commit is contained in:
Aaron Lehmann
2002-11-28 11:27:31 +00:00
parent 1652855fbc
commit a170e1c858
16 changed files with 47 additions and 95 deletions

View File

@@ -360,8 +360,7 @@ static void dfree(struct dnode **dnp)
cur = dnp[0];
while (cur != NULL) {
if (cur->fullname != NULL)
free(cur->fullname); /* free the filename */
free(cur->fullname); /* free the filename */
next = cur->next;
free(cur); /* free the dnode */
cur = next;