aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2021-01-28 20:47:47 +0000
committerGitHub <noreply@github.com>2021-01-28 20:47:47 +0000
commitdbfa7f8b3532f0f5ec4203b31901ec26ee6c4f64 (patch)
treea7581f221872802684c630be82e0b657dc5fed6c
parent1f95428c8165713d534118c5fc51b39b8edfa083 (diff)
downloadlibvfio-user-dbfa7f8b3532f0f5ec4203b31901ec26ee6c4f64.zip
libvfio-user-dbfa7f8b3532f0f5ec4203b31901ec26ee6c4f64.tar.gz
libvfio-user-dbfa7f8b3532f0f5ec4203b31901ec26ee6c4f64.tar.bz2
don't leak FDs after response (#284)
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
-rw-r--r--lib/libvfio-user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libvfio-user.c b/lib/libvfio-user.c
index 6aba044..35d66bf 100644
--- a/lib/libvfio-user.c
+++ b/lib/libvfio-user.c
@@ -956,7 +956,7 @@ process_request(vfu_ctx_t *vfu_ctx)
free(iovecs);
}
}
-
+ free(fds_out);
return ret;
}
UNIT_TEST_SYMBOL(process_request);