Skip to content

Commit

Permalink
free(d->entries) before free(d); coverity #23
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbarratt committed Jul 16, 2021
1 parent 1387fbf commit 2f60014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bpc_sysCalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1974,8 +1974,8 @@ DIR *bpc_opendir(const char *path)
*/
d->entrySize = entrySize;
if ( bpc_attribCache_getDirEntries(&acNew, (char*)path, d->entries, d->entrySize) != d->entrySize ) {
free(d);
free(d->entries);
free(d);
return NULL;
}
d->entryIdx = 0;
Expand Down

0 comments on commit 2f60014

Please sign in to comment.