diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-05-18 08:07:45 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-05-18 08:07:45 +0000 |
commit | 93c7e61652ffeb0d7c37515453e4ce5b294336e6 (patch) | |
tree | 340ce850004d79be15639115dfef4b240ce2b0d6 /usr.bin/tmux | |
parent | 16d27427622c891efbff11be9ce117784165b0e2 (diff) |
Use xfree not free, from Tiago Cunha.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/cmd-load-buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-load-buffer.c b/usr.bin/tmux/cmd-load-buffer.c index 570c8b53997..39b05c9c632 100644 --- a/usr.bin/tmux/cmd-load-buffer.c +++ b/usr.bin/tmux/cmd-load-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-load-buffer.c,v 1.16 2011/01/04 00:42:46 nicm Exp $ */ +/* $OpenBSD: cmd-load-buffer.c,v 1.17 2011/05/18 08:07:44 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -154,7 +154,7 @@ cmd_load_buffer_callback(struct client *c, void *data) psize = EVBUFFER_LENGTH(c->stdin_event->input); if (psize == 0 || (pdata = malloc(psize + 1)) == NULL) { - free(data); + xfree(data); return; } bufferevent_read(c->stdin_event, pdata, psize); @@ -170,5 +170,5 @@ cmd_load_buffer_callback(struct client *c, void *data) bufferevent_enable(c->stderr_event, EV_WRITE); } - free (data); + xfree(data); } |