projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5416e99
)
Set buffer to NULL if realloc fails so that possible next call starts
author
drepper
<drepper>
Wed, 5 Nov 1997 23:19:41 +0000
(23:19 +0000)
committer
drepper
<drepper>
Wed, 5 Nov 1997 23:19:41 +0000
(23:19 +0000)
with malloc again.
nss/getXXbyYY.c
patch
|
blob
|
history
diff --git
a/nss/getXXbyYY.c
b/nss/getXXbyYY.c
index
47df15b
..
0df916b
100644
(file)
--- a/
nss/getXXbyYY.c
+++ b/
nss/getXXbyYY.c
@@
-117,6
+117,7
@@
FUNCTION_NAME (ADD_PARAMS)
process gets a chance for a normal termination. */
save = errno;
free (buffer);
+ buffer = NULL;
__set_errno (save);
}
buffer = new_buf;