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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]