a revision thru pb.newrev, it will not be freed. From Fritjof
Bornebusch, no objections from tech@
-/* $OpenBSD: ci.c,v 1.216 2013/10/27 18:31:24 guenther Exp $ */
+/* $OpenBSD: ci.c,v 1.217 2014/05/19 19:42:24 jca Exp $ */
/*
* Copyright (c) 2005, 2006 Niall O'Higgins <niallo@openbsd.org>
* All rights reserved.
(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)
}
rcs_close(pb.file);
+ if (rev_str != NULL)
+ rcsnum_free(pb.newrev);
pb.newrev = NULL;
}