summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/rpmio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c
index 3d584511f..6feae8633 100644
--- a/rpmio/rpmio.c
+++ b/rpmio/rpmio.c
@@ -353,7 +353,7 @@ FD_t fdFree( FD_t fd)
{
if (fd) {
if (--fd->nrefs > 0)
- return NULL;
+ return fd;
fd->stats = _free(fd->stats);
if (fd->digests) {
fd->digests = rpmDigestBundleFree(fd->digests);