diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-08-12 17:51:06 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-08-12 17:51:06 +0000 |
commit | 81edf1e5d26a356c199b69591eecc79b276b25d8 (patch) | |
tree | 75827dac55ec37d02fa90c711d8b1d606527e7f4 /usr.bin/cvs/cvs.c | |
parent | 9482cf32d7f0bc408931620f2c9439e595986d56 (diff) |
After the command is done executing, if cvs_files isn't NULL, free the
file structure
Diffstat (limited to 'usr.bin/cvs/cvs.c')
-rw-r--r-- | usr.bin/cvs/cvs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/cvs.c b/usr.bin/cvs/cvs.c index e5ce5c73834..01616f11138 100644 --- a/usr.bin/cvs/cvs.c +++ b/usr.bin/cvs/cvs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cvs.c,v 1.11 2004/08/06 14:49:02 jfb Exp $ */ +/* $OpenBSD: cvs.c,v 1.12 2004/08/12 17:51:05 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -422,6 +422,9 @@ main(int argc, char **argv) cmdp->cmd_synopsis); } + if (cvs_files != NULL) + cvs_file_free(cvs_files); + return (ret); } |