aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2020-12-14 05:30:31 -0500
committerThanos Makatos <tmakatos@gmail.com>2020-12-14 10:35:38 +0000
commit36d99cfd369b047b3d31ec3e7f02aa8507d9f06d (patch)
tree5401f20f66ebe0dd86714b59303f87f3925ed320 /samples
parent90211fbd2c7c310df593736b18f1c99f053e2957 (diff)
downloadlibvfio-user-36d99cfd369b047b3d31ec3e7f02aa8507d9f06d.zip
libvfio-user-36d99cfd369b047b3d31ec3e7f02aa8507d9f06d.tar.gz
libvfio-user-36d99cfd369b047b3d31ec3e7f02aa8507d9f06d.tar.bz2
don't leak memory in server sample
Make valgrind happy. Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'samples')
-rw-r--r--samples/server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/server.c b/samples/server.c
index 97509a4..9180591 100644
--- a/samples/server.c
+++ b/samples/server.c
@@ -519,6 +519,7 @@ int main(int argc, char *argv[])
}
vfu_destroy_ctx(vfu_ctx);
+ free(server_data.migration.migr_data);
free(server_data.bar1);
return EXIT_SUCCESS;
}