Fixed a potential free()ing of a NULL pointer in
__PHYSFS_platformEnumerateFiles.
This commit is contained in:
parent
2ce179303b
commit
e6bebfa32c
|
@ -403,8 +403,10 @@ LinkedStringList *__PHYSFS_platformEnumerateFiles(const char *dirname,
|
|||
l->next = NULL;
|
||||
} /* while */
|
||||
|
||||
if (buf != NULL)
|
||||
free(buf);
|
||||
|
||||
closedir(dir);
|
||||
free(buf);
|
||||
return(retval);
|
||||
} /* __PHYSFS_platformEnumerateFiles */
|
||||
|
||||
|
|
Loading…
Reference in New Issue