[Spice-devel] [PATCH spice-common] test-overflow: Remove a leak in the test

Frediano Ziglio fziglio at redhat.com
Thu May 17 14:09:51 UTC 2018


This causes errors if Valgrind or sanitizer or similar memory
leak checkers are used.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 tests/test-overflow.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/test-overflow.c b/tests/test-overflow.c
index 0a5bdd2..c972a25 100644
--- a/tests/test-overflow.c
+++ b/tests/test-overflow.c
@@ -80,6 +80,7 @@ int main(void)
         free_output(out);
     }
     free(msg);
+    spice_marshaller_destroy(m);
 
     return 0;
 }
-- 
2.17.0



More information about the Spice-devel mailing list