=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/update.c,v retrieving revision 1.22 retrieving revision 1.23 diff -c -r1.22 -r1.23 *** src/usr.bin/cvs/update.c 2005/04/16 20:31:18 1.22 --- src/usr.bin/cvs/update.c 2005/04/18 21:02:50 1.23 *************** *** 1,4 **** ! /* $OpenBSD: update.c,v 1.22 2005/04/16 20:31:18 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: update.c,v 1.23 2005/04/18 21:02:50 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 103,109 **** char *fname, *repo, fpath[MAXPATHLEN], rcspath[MAXPATHLEN]; RCSFILE *rf; struct cvsroot *root; - struct cvs_ent *entp; ret = 0; rf = NULL; --- 103,108 ---- *************** *** 124,134 **** } 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); } --- 123,131 ---- } cvs_file_getpath(cf, fpath, sizeof(fpath)); if (root->cr_method != CVS_METHOD_LOCAL) { ! if (cvs_sendentry(root, cf) < 0) { return (CVS_EX_PROTO); } *************** *** 159,180 **** if (l == -1 || l >= (int)sizeof(rcspath)) { errno = ENAMETOOLONG; cvs_log(LP_ERRNO, "%s", rcspath); - - cvs_ent_free(entp); return (-1); } rf = rcs_open(rcspath, RCS_READ); if (rf == NULL) { - cvs_ent_free(entp); return (CVS_EX_DATA); } rcs_close(rf); } - if (entp != NULL) - cvs_ent_free(entp); return (ret); } --- 156,172 ----