Do not leak responses to abandoned ops

This commit is contained in:
Ondřej Kuzník 2017-05-03 12:18:49 +01:00 committed by Ondřej Kuzník
parent 7a29fabd09
commit c5584fd32a

View file

@ -340,6 +340,8 @@ handle_one_response( Connection *c )
} else if ( !( op = tavl_find(
c->c_ops, &needle, operation_upstream_cmp ) ) ) {
/* Already abandoned, do nothing */
ber_free( ber, 1 );
return rc;
/*
} else if ( op->o_response_pending ) {
c->c_pendingop = op;