diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-06-08 03:03:09 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-06-08 03:03:09 +0000 |
commit | d55333f7c0e0be12e82f8eaa70215e6aa9b421d4 (patch) | |
tree | 738dbb6e46a3d8a312e5b1181ff516d319d2c7f9 /usr.bin/cvs/checkout.c | |
parent | a0031e7262615243bcec56ae05c88258995a20e5 (diff) |
Avoid memory leaks in directory tag handling by always allocating and
always freeing dirtag.
ok joris
Diffstat (limited to 'usr.bin/cvs/checkout.c')
-rw-r--r-- | usr.bin/cvs/checkout.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/cvs/checkout.c b/usr.bin/cvs/checkout.c index 202c508c7e4..abcaf193522 100644 --- a/usr.bin/cvs/checkout.c +++ b/usr.bin/cvs/checkout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: checkout.c,v 1.144 2008/05/22 15:45:01 tobias Exp $ */ +/* $OpenBSD: checkout.c,v 1.145 2008/06/08 03:03:07 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -269,8 +269,6 @@ checkout_check_repository(int argc, char **argv) return; } - cvs_directory_tag = cvs_specified_tag; - for (i = 0; i < argc; i++) { mc = cvs_module_lookup(argv[i]); current_module = mc; |