summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2011-06-07 12:09:05 +0000
committerStef Walter <stefw@collabora.co.uk>2011-06-07 12:09:05 +0000
commitfb8b8cada7bad73acf936c1dee2e7b1be64e3513 (patch)
tree621ff784443f3547ab1f4e663246d0b748dd5c9f
parent7c410200143b72a5976d228d75aab59f8b965fe9 (diff)
downloadp11-kit-fb8b8cada7bad73acf936c1dee2e7b1be64e3513.tar.gz
Fix URI parsing memory leaks.
-rw-r--r--p11-kit/uri.c1
-rw-r--r--tests/uri-test.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/p11-kit/uri.c b/p11-kit/uri.c
index 36fae18..4f8e251 100644
--- a/p11-kit/uri.c
+++ b/p11-kit/uri.c
@@ -1324,6 +1324,7 @@ p11_kit_uri_free (P11KitUri *uri)
for (i = 0; i < uri->n_attributes; ++i)
free (uri->attributes[i].pValue);
+ free (uri->pinfile);
free (uri);
}
diff --git a/tests/uri-test.c b/tests/uri-test.c
index 100df31..d5ca423 100644
--- a/tests/uri-test.c
+++ b/tests/uri-test.c
@@ -1181,6 +1181,7 @@ main (void)
printf ("%s\n", output->buffer);
ret = suite->failCount;
CuSuiteDelete (suite);
+ CuStringDelete (output);
return ret;
}