Fix dns/leak_resume_send_err test.
authorAzat Khuzhin <a3at.mail@gmail.com>
Mon, 13 May 2013 19:50:30 +0000 (19:50 +0000)
committerAzat Khuzhin <a3at.mail@gmail.com>
Mon, 13 May 2013 19:56:00 +0000 (19:56 +0000)
commit7e876df71b5ac8355050018a0a130002a88801cb
treeb0543f157fc7497c00d5f58a3708cc7992a29e9b
parent1cd9ff591deca4bc39ae84985ea0c5b157faba2b
Fix dns/leak_resume_send_err test.

Because we don't cancel request,
and want our callback to recieve DNS_ERR_SHUTDOWN,
we use deferred callback, and there was
- one extra malloc(),
  @see reply_schedule_callback()
- and one missing free
  @see request_finished() (req->handle->pending_cb = 1)
than we don't need to count in testleak_cleanup()

So just decrement allocated_chunks to 2,
like we already take care about it.
test/regress_dns.c