git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e47cac8
)
Realloc fixes.
author
Jeremy Allison
<jra@samba.org>
Sun, 19 Aug 2001 17:54:10 +0000
(17:54 +0000)
committer
Jeremy Allison
<jra@samba.org>
Sun, 19 Aug 2001 17:54:10 +0000
(17:54 +0000)
Jeremy.
(This used to be commit
560ae7615eb8eca2c872b1196ce0b9534bf8ad76
)
source3/groupdb/groupfile.c
patch
|
blob
|
history
diff --git
a/source3/groupdb/groupfile.c
b/source3/groupdb/groupfile.c
index ba9027b4f6156526592873cf007f226571f0e56b..124da186fab89999c6ed830ad264ac2675be05db 100644
(file)
--- a/
source3/groupdb/groupfile.c
+++ b/
source3/groupdb/groupfile.c
@@
-131,8
+131,9
@@
static char *get_group_members(char *p, int *num_mem, DOMAIN_GRP_MEMBER **member
DOMAIN_GRP_MEMBER *mbrs;
mbrs = Realloc((*members), ((*num_mem)+1) * sizeof(DOMAIN_GRP_MEMBER));
- if (mbrs == NULL)
- {
+ if (mbrs == NULL) {
+ if (*members)
+ free(*members);
return NULL;
}
else (*members) = mbrs;