diff options
author | 2007-01-13 15:56:15 +0000 | |
---|---|---|
committer | 2007-01-13 15:56:15 +0000 | |
commit | 8787a23068c2a21b9d99d99f28e339bf739e40c8 (patch) | |
tree | 65e9684bad7981293c660cf1233f88988b24a427 /usr.bin/cvs/commit.c | |
parent | remove BUF * argument from cvs_checkout_file() it will (diff) | |
download | wireguard-openbsd-8787a23068c2a21b9d99d99f28e339bf739e40c8.tar.xz wireguard-openbsd-8787a23068c2a21b9d99d99f28e339bf739e40c8.zip |
plug 3 memleaks
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index 205dfbc452a..6920f38a245 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.95 2007/01/13 15:45:59 joris Exp $ */ +/* $OpenBSD: commit.c,v 1.96 2007/01/13 15:56:15 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> @@ -422,6 +422,9 @@ commit_diff_file(struct cvs_file *cf) if (cvs_diffreg(p1, p2, b3) == D_ERROR) fatal("commit_diff_file: failed to get RCS patch"); + xfree(p1); + xfree(p2); + return (b3); } |