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

Eirik Byrkjeflot Anonsen eirik at eirikba.org
Thu May 21 05:55:33 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 4576db6..7e1e719 100644
--- a/xprop.c
+++ b/xprop.c
@@ -1540,6 +1540,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