aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-20 17:48:26 +0000
committerDavid Robillard <d@drobilla.net>2011-01-20 17:48:26 +0000
commitb40edc21bf6f5b2573092c835538b48bff8b489c (patch)
treeeecd4df410104dfb7e7d650f2374e99663e1e345 /src/serdi.c
parente507454f6a304c7e53f596bcd5ac761ef790d479 (diff)
downloadserd-b40edc21bf6f5b2573092c835538b48bff8b489c.tar.gz
serd-b40edc21bf6f5b2573092c835538b48bff8b489c.tar.bz2
serd-b40edc21bf6f5b2573092c835538b48bff8b489c.zip
Run, and pass all, bad tests.
Fix memory errors. git-svn-id: http://svn.drobilla.net/serd/trunk@10 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 3f91e040..6b4e62b4 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -85,6 +85,7 @@ event_prefix(void* handle,
SerdURI new_abs_uri;
SerdString* abs_uri_string = serd_string_new_from_uri(&abs_uri, &new_abs_uri);
serd_namespaces_add(state->ns, name, abs_uri_string);
+ free(abs_uri_string);
} else {
serd_namespaces_add(state->ns, name, uri_string);
}
@@ -135,7 +136,6 @@ main(int argc, char** argv)
fprintf(stderr, "invalid base uri: %s\n", base_uri_str);
return 1;
}
-
}
FILE* const in_fd = fopen((const char*)in_filename, "r");
@@ -146,7 +146,6 @@ main(int argc, char** argv)
return 1;
}
- //SerdURI null_uri = {{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}};
State state = { out_fd, serd_namespaces_new(), serd_string_new(base_uri_str), base_uri };
SerdReader reader = serd_reader_new(