diff options
author | 2017-04-22 06:13:30 +0000 | |
---|---|---|
committer | 2017-04-22 06:13:30 +0000 | |
commit | fb807b18af55b8392af18e779034225682321868 (patch) | |
tree | 0c787ad68aa01424f48fc20ce4443a6cf1aaedd7 /usr.bin/tmux/cmd-load-buffer.c | |
parent | Manual page for witness(4). Adapted from FreeBSD. (diff) | |
download | wireguard-openbsd-fb807b18af55b8392af18e779034225682321868.tar.xz wireguard-openbsd-fb807b18af55b8392af18e779034225682321868.zip |
Memory leaks, from David CARLIER.
Diffstat (limited to 'usr.bin/tmux/cmd-load-buffer.c')
-rw-r--r-- | usr.bin/tmux/cmd-load-buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-load-buffer.c b/usr.bin/tmux/cmd-load-buffer.c index 969f779889b..eb388c71e27 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.49 2017/02/14 18:13:05 nicm Exp $ */ +/* $OpenBSD: cmd-load-buffer.c,v 1.50 2017/04/22 06:13:30 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -127,6 +127,7 @@ error: free(pdata); if (f != NULL) fclose(f); + free(file); return (CMD_RETURN_ERROR); } |