=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/commit.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- src/usr.bin/cvs/commit.c 2005/04/15 14:34:15 1.24 +++ src/usr.bin/cvs/commit.c 2005/04/16 18:01:26 1.25 @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.24 2005/04/15 14:34:15 xsa Exp $ */ +/* $OpenBSD: commit.c,v 1.25 2005/04/16 18:01:26 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -217,6 +217,8 @@ if (l == -1 || l >= (int)sizeof(rcspath)) { errno = ENAMETOOLONG; cvs_log(LP_ERRNO, "%s", rcspath); + + cvs_ent_free(entp); return (-1); }