=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/config.c,v retrieving revision 1.16 retrieving revision 1.17 diff -c -r1.16 -r1.17 *** src/usr.bin/cvs/config.c 2015/01/16 06:40:07 1.16 --- src/usr.bin/cvs/config.c 2015/11/05 09:48:21 1.17 *************** *** 1,4 **** ! /* $OpenBSD: config.c,v 1.16 2015/01/16 06:40:07 deraadt Exp $ */ /* * Copyright (c) 2006 Joris Vink * --- 1,4 ---- ! /* $OpenBSD: config.c,v 1.17 2015/11/05 09:48:21 nicm Exp $ */ /* * Copyright (c) 2006 Joris Vink * *************** *** 48,55 **** *(val++) = '\0'; if (!strcmp(opt, "tag")) { ! if (cvs_tagname != NULL) ! xfree(cvs_tagname); cvs_tagname = xstrdup(val); } else if (!strcmp(opt, "umask")) { cvs_umask = strtol(val, &ep, 8); --- 48,54 ---- *(val++) = '\0'; if (!strcmp(opt, "tag")) { ! free(cvs_tagname); cvs_tagname = xstrdup(val); } else if (!strcmp(opt, "umask")) { cvs_umask = strtol(val, &ep, 8); *************** *** 115,122 **** break; } ! if (lbuf != NULL) ! xfree(lbuf); ! (void)fclose(fp); } --- 114,119 ---- break; } ! free(lbuf); (void)fclose(fp); }