X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Freadtokens.c;h=672bc8f49d6f9577c1954e16e672cbab644e26ba;hb=6815bc73969d38c2226cf6e3366c1e4f4f756ba0;hp=e29f20e69acf988e1dfbcd8bf8bb9aa70e0ddb9c;hpb=0d57ec95210fd22a42b07e5cf5c4f3346f64c40f;p=gnulib.git diff --git a/lib/readtokens.c b/lib/readtokens.c index e29f20e69..672bc8f49 100644 --- a/lib/readtokens.c +++ b/lib/readtokens.c @@ -1,6 +1,6 @@ /* readtokens.c -- Functions for reading tokens from an input stream. - Copyright (C) 1990-1991, 1999-2004, 2006, 2009-2010 Free Software + 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 @@ -197,5 +197,7 @@ readtokens (FILE *stream, *tokens_out = tokens; if (token_lengths != NULL) *token_lengths = lengths; + else + free (lengths); return n_tokens; }