diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-10-05 11:38:03 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-10-05 11:38:03 +0000 |
commit | 67e530eda57ca0e7cc22d611479e58ccb6f6a374 (patch) | |
tree | 5f638f4b4955c4d34549580a9d448692551cedb8 /usr.bin/cvs/rcs.c | |
parent | bc81e87a2524f9ea806e7f42bd7cf58cb8db95a6 (diff) |
free rl_name as well when freeing the lock list;
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r-- | usr.bin/cvs/rcs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c index 6412ba66d01..cb31fd19548 100644 --- a/usr.bin/cvs/rcs.c +++ b/usr.bin/cvs/rcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.c,v 1.76 2005/10/04 23:02:56 joris Exp $ */ +/* $OpenBSD: rcs.c,v 1.77 2005/10/05 11:38:02 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -422,6 +422,7 @@ rcs_close(RCSFILE *rfp) rlp = TAILQ_FIRST(&(rfp->rf_locks)); TAILQ_REMOVE(&(rfp->rf_locks), rlp, rl_list); rcsnum_free(rlp->rl_num); + cvs_strfree(rlp->rl_name); free(rlp); } |