lib/transaction_files.c: fix CID 284958 (Resource leak).

This commit is contained in:
Juan RP 2020-04-19 11:17:02 +02:00
parent debfcf1273
commit 83d87ce05b
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368

View File

@ -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;
}