diff --git a/st.c b/st.c
index b63d865..9cdd969 100644
--- a/st.c
+++ b/st.c
@@ -3258,6 +3258,7 @@ xsettitle(char *p) {
 	Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle,
 			&prop);
 	XSetWMName(xw.dpy, xw.win, &prop);
+	XFree(prop.value);
 }
 
 void