projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
strtod: fix bug in replacement function on AIX
[pspp]
/
lib
/
readtokens.c
diff --git
a/lib/readtokens.c
b/lib/readtokens.c
index 8172eb1f15a23d323adb9672336723dc12871d1d..c65c1b13deb534112c01c1cc5b21709b795f6708 100644
(file)
--- a/
lib/readtokens.c
+++ b/
lib/readtokens.c
@@
-31,6
+31,8
@@
#include <string.h>
#include <stdbool.h>
+#include "xalloc.h"
+
#if USE_UNLOCKED_IO
# include "unlocked-io.h"
#endif
@@
-195,5
+197,7
@@
readtokens (FILE *stream,
*tokens_out = tokens;
if (token_lengths != NULL)
*token_lengths = lengths;
+ else
+ free (lengths);
return n_tokens;
}