X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Freadtokens.c;h=672bc8f49d6f9577c1954e16e672cbab644e26ba;hb=1a6fbdd7d28dff1868c5eb0baf0029b27e42526a;hp=8fc7c6b8df6edb85c67528b011f97ec88c4b40b2;hpb=3030c5b5e0a5199e16b05927da72c43c42f211c3;p=gnulib.git diff --git a/lib/readtokens.c b/lib/readtokens.c index 8fc7c6b8d..672bc8f49 100644 --- a/lib/readtokens.c +++ b/lib/readtokens.c @@ -1,7 +1,7 @@ /* readtokens.c -- Functions for reading tokens from an input stream. - Copyright (C) 1990-1991, 1999-2004, 2006, 2009 Free Software Foundation, - Inc. + Copyright (C) 1990-1991, 1999-2004, 2006, 2009-2011 Free Software + Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -197,5 +197,7 @@ readtokens (FILE *stream, *tokens_out = tokens; if (token_lengths != NULL) *token_lengths = lengths; + else + free (lengths); return n_tokens; }