lib/transaction_files.c: fix CID 284958 (Resource leak).
This commit is contained in:
parent
debfcf1273
commit
83d87ce05b
@ -183,6 +183,7 @@ can_delete_directory(struct xbps_handle *xhp, const char *file, size_t len, size
|
||||
xbps_dbg_printf(xhp, "[files] only removed %zu out of %zu files: %s\n",
|
||||
rmcount, fcount, file);
|
||||
}
|
||||
closedir(dp);
|
||||
|
||||
return fcount <= rmcount;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user