[PATCH v3 1/4] Free the thunks used by Show_Prop
Eirik Byrkjeflot Anonsen
eirik at eirikba.org
Fri May 22 02:10:02 PDT 2015
Signed-off-by: Eirik Byrkjeflot Anonsen <eirik at eirikba.org>
---
xprop.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/xprop.c b/xprop.c
index 4c4c702..d3af3d3 100644
--- a/xprop.c
+++ b/xprop.c
@@ -95,14 +95,6 @@ Create_Thunk_List (void)
return tptr;
}
-#ifdef notused
-static void
-Free_Thunk_List (thunk *list)
-{
- free(list);
-}
-#endif
-
static thunk *
Add_Thunk (thunk *list, thunk t)
{
@@ -1519,8 +1511,8 @@ Show_Prop (const char *format, const char *dformat, const char *prop)
}
thunks = Break_Down_Property(data, (int)length, type, format, size);
-
Display_Property(thunks, dformat, format);
+ free(thunks);
}
static void
--
2.1.4
More information about the xorg-devel
mailing list