aboutsummaryrefslogtreecommitdiffstats
path: root/group.c
diff options
context:
space:
mode:
authorokan2011-10-12 15:43:50 +0000
committerokan2011-10-12 15:43:50 +0000
commit1e06bc04e3baf069dffbfc51a74eaf46e4f8a021 (patch)
tree060bb0d751868bba22c51f519cfffa5ff8cb2931 /group.c
parent142e82d1820534d8206e40d214b13116da3d4673 (diff)
downloadcwm-1e06bc04e3baf069dffbfc51a74eaf46e4f8a021.tar.gz
use xfree instead of free since strings is allocated with xmalloc; from
dhill ok oga@
Diffstat (limited to 'group.c')
-rw-r--r--group.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/group.c b/group.c
index 1c2f292..a38a005 100644
--- a/group.c
+++ b/group.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: group.c,v 1.53 2011/09/19 07:23:03 okan Exp $
+ * $OpenBSD: group.c,v 1.54 2011/10/12 15:43:50 okan Exp $
*/
#include <sys/param.h>
@@ -515,7 +515,7 @@ group_update_names(struct screen_ctx *sc)
if (prop_ret != NULL)
XFree(prop_ret);
if (sc->group_nonames != 0)
- free(sc->group_names);
+ xfree(sc->group_names);
sc->group_names = strings;
sc->group_nonames = n;