=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/ci.c,v retrieving revision 1.216 retrieving revision 1.217 diff -c -r1.216 -r1.217 *** src/usr.bin/rcs/ci.c 2013/10/27 18:31:24 1.216 --- src/usr.bin/rcs/ci.c 2014/05/19 19:42:24 1.217 *************** *** 1,4 **** ! /* $OpenBSD: ci.c,v 1.216 2013/10/27 18:31:24 guenther Exp $ */ /* * Copyright (c) 2005, 2006 Niall O'Higgins * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: ci.c,v 1.217 2014/05/19 19:42:24 jca Exp $ */ /* * Copyright (c) 2005, 2006 Niall O'Higgins * All rights reserved. *************** *** 287,293 **** (void)fprintf(stderr, "%s <-- %s\n", pb.fpath, pb.filename); - /* XXX - Should we rcsnum_free(pb.newrev)? */ if (rev_str != NULL) if ((pb.newrev = rcs_getrevnum(rev_str, pb.file)) == NULL) --- 287,292 ---- *************** *** 315,320 **** --- 314,321 ---- } rcs_close(pb.file); + if (rev_str != NULL) + rcsnum_free(pb.newrev); pb.newrev = NULL; }