Created
April 18, 2012 13:33
-
-
Save zircote/2413581 to your computer and use it in GitHub Desktop.
Addresses a memory leak to AMQPQueue::get
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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