qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject [2/2] qpid-dispatch git commit: DISPATCH-846: Fix leak in qd_server_connection
Date Tue, 03 Oct 2017 19:34:03 GMT
DISPATCH-846: Fix leak in qd_server_connection


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/e69478a4
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/e69478a4
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/e69478a4

Branch: refs/heads/master
Commit: e69478a4ebfd18f76bfd682329f11e7658a06a59
Parents: 96cbc15
Author: Alan Conway <aconway@redhat.com>
Authored: Tue Oct 3 15:23:33 2017 -0400
Committer: Alan Conway <aconway@redhat.com>
Committed: Tue Oct 3 15:33:02 2017 -0400

----------------------------------------------------------------------
 src/server.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/e69478a4/src/server.c
----------------------------------------------------------------------
diff --git a/src/server.c b/src/server.c
index 88144a5..5f9a51e 100644
--- a/src/server.c
+++ b/src/server.c
@@ -507,6 +507,7 @@ qd_connection_t *qd_server_connection(qd_server_t *server, qd_server_config_t
*c
         if (ctx->pn_conn) pn_connection_free(ctx->pn_conn);
         if (ctx->deferred_call_lock) sys_mutex_free(ctx->deferred_call_lock);
         free(ctx->role);
+        free(ctx);
         return NULL;
     }
     ctx->server = server;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message