Skip to content

Instantly share code, notes, and snippets.

@zircote
Created April 18, 2012 13:33
Show Gist options
  • Select an option

  • Save zircote/2413581 to your computer and use it in GitHub Desktop.

Select an option

Save zircote/2413581 to your computer and use it in GitHub Desktop.
Addresses a memory leak to AMQPQueue::get
Index: amqp_queue.c
===================================================================
--- amqp_queue.c (revision 325290)
+++ amqp_queue.c (working copy)
@@ -204,6 +204,7 @@
AMQP_SET_BOOL_PROPERTY(envelope->is_redelivery, delivery->redelivered);
} else if (frame.payload.method.id == AMQP_BASIC_GET_EMPTY_METHOD) {
/* We did a get and there were no messages */
+ zval_dtor(envelopeZval);
return AMQP_READ_NO_MESSAGES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment