[osinfo-db-tools PATCH 2/3] validate: Do not leak the uri in validate_file_regular()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 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

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux