diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2008-01-31 22:11:39 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2008-01-31 22:11:39 +0000 |
commit | b069c3b555887c8c543611b6a0be1dd1c7e4c2a1 (patch) | |
tree | db07940a0a073fd53c9c86d8a5aabecdd450abe8 /usr.bin/cvs/util.c | |
parent | b6102ae46d4d0e4e26b36140586f478a19239d4d (diff) |
free RCSNUM's when we are done with them;
ok tobias@
Diffstat (limited to 'usr.bin/cvs/util.c')
-rw-r--r-- | usr.bin/cvs/util.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c index a2ea80e822c..c9a37b6bd1e 100644 --- a/usr.bin/cvs/util.c +++ b/usr.bin/cvs/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.128 2008/01/31 22:09:05 xsa Exp $ */ +/* $OpenBSD: util.c,v 1.129 2008/01/31 22:11:38 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org> @@ -790,14 +790,12 @@ cvs_revision_select(RCSFILE *file, char *range) nrev++; } } - } - - cvs_argv_destroy(revargv); - if (lnum != NULL) rcsnum_free(lnum); - if (rnum != NULL) rcsnum_free(rnum); + } + + cvs_argv_destroy(revargv); return (nrev); } |