diff options
author | Michael Adam <obnox@samba.org> | 2008-01-09 01:35:43 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-01-09 01:35:43 +0100 |
commit | 2e3ac4d3fe65ee72111c03a9b6fabf06f8192a69 (patch) | |
tree | 0bf0bd6bb8c19e3138f61b0e974347c4f8bc3ad4 | |
parent | ebb21268df233933938e64e83ed315313aedd544 (diff) | |
download | samba-2e3ac4d3fe65ee72111c03a9b6fabf06f8192a69.tar.gz samba-2e3ac4d3fe65ee72111c03a9b6fabf06f8192a69.tar.bz2 samba-2e3ac4d3fe65ee72111c03a9b6fabf06f8192a69.zip |
Add a comment.
Michael
(This used to be commit 3a4bf4b7c3081048f0d5491dae6610388c268c2f)
-rw-r--r-- | source3/lib/talloc/talloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/talloc/talloc.c b/source3/lib/talloc/talloc.c index 476d765104..3e976bc0fc 100644 --- a/source3/lib/talloc/talloc.c +++ b/source3/lib/talloc/talloc.c @@ -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; |