Removed unused patch
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
53057966f8
commit
91496a8099
|
@ -1,27 +0,0 @@
|
||||||
diff --git a/src/receive.c b/src/receive.c
|
|
||||||
index 7980c32..3246621 100644
|
|
||||||
--- a/src/receive.c
|
|
||||||
+++ b/src/receive.c
|
|
||||||
@@ -1772,8 +1772,8 @@ for (;;)
|
|
||||||
(and sometimes lunatic messages can have ones that are 100s of K long) we
|
|
||||||
call store_release() for strings that have been copied - if the string is at
|
|
||||||
the start of a block (and therefore the only thing in it, because we aren't
|
|
||||||
- doing any other gets), the block gets freed. We can only do this because we
|
|
||||||
- know there are no other calls to store_get() going on. */
|
|
||||||
+ doing any other gets), the block gets freed. We can only do this release if
|
|
||||||
+ there were no allocations since the once that we want to free. */
|
|
||||||
|
|
||||||
if (ptr >= header_size - 4)
|
|
||||||
{
|
|
||||||
@@ -1782,9 +1782,10 @@ for (;;)
|
|
||||||
header_size *= 2;
|
|
||||||
if (!store_extend(next->text, oldsize, header_size))
|
|
||||||
{
|
|
||||||
+ BOOL release_ok = store_last_get[store_pool] == next->text;
|
|
||||||
uschar *newtext = store_get(header_size);
|
|
||||||
memcpy(newtext, next->text, ptr);
|
|
||||||
- store_release(next->text);
|
|
||||||
+ if (release_ok) store_release(next->text);
|
|
||||||
next->text = newtext;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue