mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
parent
ebb21268df
commit
2e3ac4d3fe
@ -792,6 +792,7 @@ void *_talloc_realloc(const void *context, void *ptr, size_t size, const char *n
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* don't shrink if we have less than 1k to gain */
|
||||
if ((size < tc->size) && ((tc->size - size) < 1024)) {
|
||||
tc->size = size;
|
||||
return ptr;
|
||||
|
Loading…
Reference in New Issue
Block a user