mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-07 06:06:08 +00:00
plugins/emperor_amqp: fix wrong exit point on error
Fixes a memory leak. Reported by Coverity as CID #1308290
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user