summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2013-06-18 15:30:03 -0700
committerAlan Antonuk <alan.antonuk@gmail.com>2013-06-18 15:30:03 -0700
commit52a459bc28233859ce99549e1bb71c7804e5cb82 (patch)
treea3686bc78e18dafb8aceda2246233a7a32c79207
parent2e37bb39ea71f44cb670665ae2d94bd03074c486 (diff)
downloadrabbitmq-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.c1
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;