From 692dd06ebbe2a0a77c919848cbf0533d5e7a66ba Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 27 Mar 2010 15:06:41 +0000 Subject: Don't leak job command in #(). --- usr.bin/tmux/status.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/tmux/status.c b/usr.bin/tmux/status.c index ab883e52933..8ba41108f70 100644 --- a/usr.bin/tmux/status.c +++ b/usr.bin/tmux/status.c @@ -1,4 +1,4 @@ -/* $OpenBSD: status.c,v 1.59 2010/03/22 19:18:46 nicm Exp $ */ +/* $OpenBSD: status.c,v 1.60 2010/03/27 15:06:40 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -526,6 +526,7 @@ status_job(struct client *c, char **iptr) JOB_PERSIST, c, cmd, status_job_callback, xfree, NULL); job_run(job); } + xfree(cmd); if (job->data == NULL) return (xstrdup("")); return (xstrdup(job->data)); -- cgit v1.2.3