--- cmsProp_orig.c 2016-07-05 11:37:09.303694403 +0530 +++ cmsProp.c 2016-07-05 11:37:50.708063729 +0530 @@ -138,6 +138,8 @@ if (xgwp_ret != Success || format_ret == 0 || nitems_ret == 0) { /* the property does not exist or is of an unexpected type or getting window property failed */ + if(prop_ret) + XFree(prop_ret); return(XcmsFailure); }