diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2007-01-12 19:28:13 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2007-01-12 19:28:13 +0000 |
commit | 2a0a7d337321a12b7989aaf375e262b416ac99dc (patch) | |
tree | d7d862bc2672f2e46c71f0ea9822790ea5a73cd7 /usr.bin/cvs/file.c | |
parent | 0d4487fe419f565308ab5595eebcf02edc704636 (diff) |
do not leak memory from rcs_head_get()
ok niallo@
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r-- | usr.bin/cvs/file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c index a370cf90362..3e6973cca5f 100644 --- a/usr.bin/cvs/file.c +++ b/usr.bin/cvs/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.166 2007/01/10 21:32:19 xsa Exp $ */ +/* $OpenBSD: file.c,v 1.167 2007/01/12 19:28:12 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> @@ -828,6 +828,8 @@ cvs_file_free(struct cvs_file *cf) xfree(cf->file_wd); xfree(cf->file_path); + if (cf->file_rcsrev != NULL) + rcsnum_free(cf->file_rcsrev); if (cf->file_rpath != NULL) xfree(cf->file_rpath); if (cf->file_ent != NULL) |