summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-09 01:35:43 +0100
committerMichael Adam <obnox@samba.org>2008-02-11 15:07:46 +0100
commit81abb395e02116eda0f0f3d00843e27fc158e1c0 (patch)
tree37189ab2e8c52dda01221b55bc448c007f1551a8 /source4
parentaf406133c1aa736d6c2c8327cdc0f39b7592df92 (diff)
downloadsamba-81abb395e02116eda0f0f3d00843e27fc158e1c0.tar.gz
samba-81abb395e02116eda0f0f3d00843e27fc158e1c0.tar.bz2
samba-81abb395e02116eda0f0f3d00843e27fc158e1c0.zip
Add a comment.
Michael (This used to be commit 2a2c28584cdb65fcea8563eb3bf21fea497fdff3)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/talloc/talloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/talloc/talloc.c b/source4/lib/talloc/talloc.c
index 9e141ab5fd..0df00ed971 100644
--- a/source4/lib/talloc/talloc.c
+++ b/source4/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;