qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gmur...@apache.org
Subject qpid-dispatch git commit: DISPATCH-245 - Removed msg and source null checks. These pointers have already been dereferenced earlier in the function
Date Fri, 15 Apr 2016 14:43:33 GMT
Repository: qpid-dispatch
Updated Branches:
  refs/heads/master e43f475f4 -> 30889363a


DISPATCH-245 - Removed msg and source null checks. These pointers have already been dereferenced
earlier in the function


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

Branch: refs/heads/master
Commit: 30889363abcf8234dd11166fa2d5f5b5312f1b3e
Parents: e43f475
Author: Ganesh Murthy <gmurthy@redhat.com>
Authored: Fri Apr 15 10:43:15 2016 -0400
Committer: Ganesh Murthy <gmurthy@redhat.com>
Committed: Fri Apr 15 10:43:15 2016 -0400

----------------------------------------------------------------------
 src/router_core/management_agent.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/30889363/src/router_core/management_agent.c
----------------------------------------------------------------------
diff --git a/src/router_core/management_agent.c b/src/router_core/management_agent.c
index dbbcaaf..e048c85 100644
--- a/src/router_core/management_agent.c
+++ b/src/router_core/management_agent.c
@@ -197,10 +197,8 @@ static void qd_manage_response_handler(void *context, const qd_amqp_error_t
*sta
     qd_field_iterator_free(reply_to);
     qd_compose_free(fld);
 
-    if (ctx->msg)
-        qd_message_free(ctx->msg);
-    if (ctx->source)
-        qd_message_free(ctx->source);
+    qd_message_free(ctx->msg);
+    qd_message_free(ctx->source);
     qd_compose_free(ctx->field);
 
     free_qd_management_context_t(ctx);


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


Mime
View raw message