=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/import.c,v retrieving revision 1.5 retrieving revision 1.6 diff -c -r1.5 -r1.6 *** src/usr.bin/cvs/import.c 2005/02/28 20:18:02 1.5 --- src/usr.bin/cvs/import.c 2005/03/05 18:43:55 1.6 *************** *** 1,4 **** ! /* $OpenBSD: import.c,v 1.5 2005/02/28 20:18:02 joris Exp $ */ /* * Copyright (c) 2004 Joris Vink * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: import.c,v 1.6 2005/03/05 18:43:55 joris Exp $ */ /* * Copyright (c) 2004 Joris Vink * All rights reserved. *************** *** 58,64 **** cvs_import(int argc, char **argv) { int ch, flags; ! char *branch, *ep; struct cvsroot *root; RCSNUM *bnum; --- 58,64 ---- cvs_import(int argc, char **argv) { int ch, flags; ! char *branch; struct cvsroot *root; RCSNUM *bnum; *************** *** 69,82 **** switch (ch) { case 'b': branch = optarg; ! if ((bnum = rcsnum_alloc()) == NULL) ! return (-1); ! if ((rcsnum_aton(branch, &ep, bnum) < 0) || ! (*ep != '\0')) { cvs_log(LP_ERR, "%s is not a numeric branch", branch); return (EX_USAGE); } break; case 'd': break; --- 69,80 ---- switch (ch) { case 'b': branch = optarg; ! if ((bnum = rcsnum_parse(branch)) == NULL) { cvs_log(LP_ERR, "%s is not a numeric branch", branch); return (EX_USAGE); } + rcsnum_free(bnum); break; case 'd': break;