mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
test: fix various leaks in the tests
This commit is contained in:
@@ -63,17 +63,24 @@ xfree86_option_list_duplicate(void)
|
||||
|
||||
assert(strcmp(val1, v1) == 0);
|
||||
assert(strcmp(val1, val2) == 0);
|
||||
free(val1);
|
||||
free(val2);
|
||||
|
||||
val1 = xf86CheckStrOption(options, o2, "1");
|
||||
val2 = xf86CheckStrOption(duplicate, o2, "2");
|
||||
|
||||
assert(strcmp(val1, v2) == 0);
|
||||
assert(strcmp(val1, val2) == 0);
|
||||
free(val1);
|
||||
free(val2);
|
||||
|
||||
a = xf86FindOption(options, o_null);
|
||||
b = xf86FindOption(duplicate, o_null);
|
||||
assert(a);
|
||||
assert(b);
|
||||
|
||||
xf86OptionListFree(duplicate);
|
||||
xf86OptionListFree(options);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user