[Libosinfo] [osinfo-db-tools PATCH 2/3] validate: Do not leak the uri in validate_file_regular()
Fabiano Fidêncio
fidencio at redhat.com
Thu Apr 4 15:47:43 UTC 2019
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
tools/osinfo-db-validate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/osinfo-db-validate.c b/tools/osinfo-db-validate.c
index 8a1d4b9..0e28e1c 100644
--- a/tools/osinfo-db-validate.c
+++ b/tools/osinfo-db-validate.c
@@ -106,7 +106,7 @@ static gboolean validate_file_regular(xmlRelaxNGValidCtxtPtr rngValid,
ret = TRUE;
cleanup:
- //g_free(uri);
+ g_free(uri);
xmlFreeDoc(doc);
return ret;
}
--
2.21.0
More information about the Libosinfo
mailing list