projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Consistent macro naming for macros that use GCC __attribute__.
[gnulib.git]
/
lib
/
readtokens.c
diff --git
a/lib/readtokens.c
b/lib/readtokens.c
index
8172eb1
..
672bc8f
100644
(file)
--- a/
lib/readtokens.c
+++ b/
lib/readtokens.c
@@
-1,6
+1,6
@@
/* readtokens.c -- Functions for reading tokens from an input stream.
/* readtokens.c -- Functions for reading tokens from an input stream.
- Copyright (C) 1990-1991, 1999-2004, 2006, 2009-201
0
Free Software
+ Copyright (C) 1990-1991, 1999-2004, 2006, 2009-201
1
Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
@@
-31,6
+31,8
@@
#include <string.h>
#include <stdbool.h>
#include <string.h>
#include <stdbool.h>
+#include "xalloc.h"
+
#if USE_UNLOCKED_IO
# include "unlocked-io.h"
#endif
#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;
*tokens_out = tokens;
if (token_lengths != NULL)
*token_lengths = lengths;
+ else
+ free (lengths);
return n_tokens;
}
return n_tokens;
}