[PATCH v3 3/4] Free the data returned by XListProperties()

Eirik Byrkjeflot Anonsen eirik at eirikba.org
Fri May 22 02:10:04 PDT 2015


Signed-off-by: Eirik Byrkjeflot Anonsen <eirik at eirikba.org>
---
 xprop.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xprop.c b/xprop.c
index 9a0af9e..3b24746 100644
--- a/xprop.c
+++ b/xprop.c
@@ -1534,6 +1534,7 @@ Show_All_Props (void)
 	    name = Format_Atom(atoms[i]);
 	    Show_Prop(NULL, NULL, name);
 	}
+	XFree(atoms);
     } else
 	for (i = 0; i < font->n_properties; i++) {
 	    atom = font->properties[i].name;
-- 
2.1.4



More information about the xorg-devel mailing list