diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2013-06-18 15:30:03 -0700 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2013-06-18 15:30:03 -0700 |
commit | 52a459bc28233859ce99549e1bb71c7804e5cb82 (patch) | |
tree | a3686bc78e18dafb8aceda2246233a7a32c79207 | |
parent | 2e37bb39ea71f44cb670665ae2d94bd03074c486 (diff) | |
download | rabbitmq-c-52a459bc28233859ce99549e1bb71c7804e5cb82.tar.gz |
FIX amqp_tune_connection don't delete state on err
amqp_tune_connection shouldn't destroy the state object on memory error,
it should be left to the calling function
-rw-r--r-- | librabbitmq/amqp_connection.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/librabbitmq/amqp_connection.c b/librabbitmq/amqp_connection.c index f3552e9..8d7f7b5 100644 --- a/librabbitmq/amqp_connection.c +++ b/librabbitmq/amqp_connection.c @@ -147,7 +147,6 @@ int amqp_tune_connection(amqp_connection_state_t state, state->outbound_buffer.len = frame_max; newbuf = realloc(state->outbound_buffer.bytes, frame_max); if (newbuf == NULL) { - amqp_destroy_connection(state); return AMQP_STATUS_NO_MEMORY; } state->outbound_buffer.bytes = newbuf; |