=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/annotate.c,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/cvs/annotate.c 2005/04/13 20:05:37 1.10 --- src/usr.bin/cvs/annotate.c 2005/04/18 21:02:49 1.11 *************** *** 1,4 **** ! /* $OpenBSD: annotate.c,v 1.10 2005/04/13 20:05:37 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: annotate.c,v 1.11 2005/04/18 21:02:49 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 131,137 **** int ret; char fpath[MAXPATHLEN]; struct cvsroot *root; - struct cvs_ent *entp; ret = 0; root = CVS_DIR_ROOT(cf); --- 131,136 ---- *************** *** 149,159 **** } cvs_file_getpath(cf, fpath, sizeof(fpath)); - entp = cvs_ent_getent(fpath); if (root->cr_method != CVS_METHOD_LOCAL) { ! if ((entp != NULL) && (cvs_sendentry(root, entp) < 0)) { ! cvs_ent_free(entp); return (CVS_EX_PROTO); } --- 148,156 ---- } cvs_file_getpath(cf, fpath, sizeof(fpath)); if (root->cr_method != CVS_METHOD_LOCAL) { ! if (cvs_sendentry(root, cf) < 0) { return (CVS_EX_PROTO); } *************** *** 181,187 **** } } - if (entp != NULL) - cvs_ent_free(entp); return (ret); } --- 178,182 ----