diff options
author | David Robillard <d@drobilla.net> | 2018-01-06 16:05:42 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-07-22 12:47:44 +0200 |
commit | 2fddc28b430ede69e44dcd69e3692993a7c1d161 (patch) | |
tree | 309fa87c7fb0adb5ea4b1e049a58ed9d1a40efc3 /tests | |
parent | 88ac6c757f5a40a604c14775cf11552fa657f0ad (diff) | |
download | serd-2fddc28b430ede69e44dcd69e3692993a7c1d161.tar.gz serd-2fddc28b430ede69e44dcd69e3692993a7c1d161.tar.bz2 serd-2fddc28b430ede69e44dcd69e3692993a7c1d161.zip |
Add serd_free for freeing memory allocated by serd
Diffstat (limited to 'tests')
-rw-r--r-- | tests/serd_test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c index 3c2fb630..af158215 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -106,8 +106,8 @@ check_file_uri(const char* hostname, path, node.buf, out_path); } - free(out_path); - free(out_hostname); + serd_free(out_path); + serd_free(out_hostname); serd_node_free(&node); return ret; } @@ -225,7 +225,7 @@ main(void) } serd_node_free(&blob); - free(out); + serd_free(out); free(data); } @@ -325,7 +325,7 @@ main(void) if (strcmp((const char*)out_path, "/foo/bar")) { FAILF("bad tolerance of junk escape: `%s'\n", out_path); } - free(out_path); + serd_free(out_path); // Test serd_node_equals @@ -618,7 +618,7 @@ main(void) FAILF("Incorrect chunk output:\n%s\n", chunk.buf); } - free(out); + serd_free(out); // Rewind and test reader fseek(fd, 0, SEEK_SET); |