plugins/emperor_amqp: fix wrong exit point on error

Fixes a memory leak.

Reported by Coverity as CID #1308290
This commit is contained in:
Riccardo Magliocchetti
2015-07-07 16:07:13 +02:00
parent af440aee53
commit eb617e225f
+1 -1
View File
@@ -164,7 +164,7 @@ char *uwsgi_amqp_consume(int fd, uint64_t *msgsize, char **routing_key) {
while(current_size < *msgsize) {
message = amqp_simple_get_frame(fd, &fh);
if (!message) goto clear;
if (!message) goto clear3;
if (fh.type != 3) {
free(message);