=================================================================== RCS file: /cvs/mandoc/mandocdb.c,v retrieving revision 1.179 retrieving revision 1.180 diff -u -p -r1.179 -r1.180 --- mandoc/mandocdb.c 2014/12/09 07:29:42 1.179 +++ mandoc/mandocdb.c 2014/12/30 20:41:00 1.180 @@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.179 2014/12/09 07:29:42 schwarze Exp $ */ +/* $Id: mandocdb.c,v 1.180 2014/12/30 20:41:00 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze @@ -852,6 +852,7 @@ filescan(const char *file) if (strlcpy(mlink->file, start, sizeof(mlink->file)) >= sizeof(mlink->file)) { say(start, "Filename too long"); + free(mlink); return; }