Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
---
Not found by Coverity :)
we should hook up valgrind to make check, in our copious spare time.

 test/dbverify.c            | 4 ++++
 test/load.c                | 1 +
 test/tablet-svg-validity.c | 2 ++
 test/tablet-validity.c     | 2 ++
 4 files changed, 9 insertions(+)

diff --git a/test/dbverify.c b/test/dbverify.c
index 4abe9fa..a4cd1bd 100644
--- a/test/dbverify.c
+++ b/test/dbverify.c
@@ -111,6 +111,9 @@ compare_databases(WacomDeviceDatabase *orig, 
WacomDeviceDatabase *new)
                assert(old_matched[i]);
        }
 
+       free(old_matched);
+       free(oldall);
+       free(newall);
 }
 
 /* write out the current db, read it back in, compare */
@@ -160,6 +163,7 @@ compare_written_database(WacomDeviceDatabase *db)
                        assert(fd_stylus >= 0);
                        libwacom_print_stylus_description(fd_stylus, stylus);
                        close(fd_stylus);
+                       free(path);
                }
        }
 
diff --git a/test/load.c b/test/load.c
index fcb8dcb..595f453 100644
--- a/test/load.c
+++ b/test/load.c
@@ -127,6 +127,7 @@ int main(int argc, char **argv)
        assert(device);
        assert(libwacom_get_integration_flags (device) & 
WACOM_DEVICE_INTEGRATED_DISPLAY);
        assert(libwacom_get_integration_flags (device) & 
WACOM_DEVICE_INTEGRATED_SYSTEM);
+       libwacom_destroy(device);
        libwacom_database_destroy (db);
 
        return 0;
diff --git a/test/tablet-svg-validity.c b/test/tablet-svg-validity.c
index d0bb54d..1e00a87 100644
--- a/test/tablet-svg-validity.c
+++ b/test/tablet-svg-validity.c
@@ -100,6 +100,7 @@ verify_has_class (xmlNodePtr cur, const gchar *expected)
 
        g_strfreev (classes_present);
        g_strfreev (classes_expected);
+       xmlFree (prop);
 }
 
 static void
@@ -314,6 +315,7 @@ int main(int argc, char **argv)
        for (device = devices; *device; device++)
                verify_tablet_layout(db, *device);
 
+       free(devices);
        libwacom_database_destroy (db);
 
        return 0;
diff --git a/test/tablet-validity.c b/test/tablet-validity.c
index 6ec3bbb..c051818 100644
--- a/test/tablet-validity.c
+++ b/test/tablet-validity.c
@@ -242,6 +242,8 @@ int main(int argc, char **argv)
 
        libwacom_database_destroy (db);
 
+       free(devices);
+
        return 0;
 }
 
-- 
2.1.0


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to