From ac237a888cbd2ffe8446adc8a51482e603ca3765 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 14 Apr 2019 11:11:24 +0200 Subject: Fix Windows cross-library malloc/free errors --- test/lilv_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/lilv_test.c b/test/lilv_test.c index ca56819..6e1f63c 100644 --- a/test/lilv_test.c +++ b/test/lilv_test.c @@ -1640,7 +1640,7 @@ test_state(void) // Ensure they are equal TEST_ASSERT(lilv_state_equals(state, from_str)); - free(state1_str); + lilv_free(state1_str); const LilvNode* state_plugin_uri = lilv_state_get_plugin_uri(state); TEST_ASSERT(lilv_node_equals(state_plugin_uri, plugin_uri)); @@ -1719,7 +1719,7 @@ test_state(void) lilv_world_load_bundle(world, test_state_bundle); lilv_world_load_resource(world, test_state_node); serd_node_free(&state6_uri); - free(state6_path); + lilv_free(state6_path); LilvState* state6 = lilv_state_new_from_world(world, &map, test_state_node); TEST_ASSERT(lilv_state_equals(state, state6)); // Round trip accuracy -- cgit v1.2.1