You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2013/12/02 15:12:14 UTC
svn commit: r1547025 - in /qpid/proton/trunk/proton-c/src/messenger:
messenger.c subscription.c
Author: rhs
Date: Mon Dec 2 14:12:14 2013
New Revision: 1547025
URL: http://svn.apache.org/r1547025
Log:
fixes for PROTON-439
Modified:
qpid/proton/trunk/proton-c/src/messenger/messenger.c
qpid/proton/trunk/proton-c/src/messenger/subscription.c
Modified: qpid/proton/trunk/proton-c/src/messenger/messenger.c
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/src/messenger/messenger.c?rev=1547025&r1=1547024&r2=1547025&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/src/messenger/messenger.c (original)
+++ qpid/proton/trunk/proton-c/src/messenger/messenger.c Mon Dec 2 14:12:14 2013
@@ -747,7 +747,9 @@ void pn_messenger_endpoints(pn_messenger
pn_link_ctx_t *ctx = (pn_link_ctx_t *) pn_link_get_context(link);
if (ctx) {
const char *addr = pn_terminus_get_address(pn_link_remote_source(link));
- pni_subscription_set_address(ctx->subscription, addr);
+ if (ctx->subscription) {
+ pni_subscription_set_address(ctx->subscription, addr);
+ }
}
}
link = pn_link_next(link, PN_LOCAL_ACTIVE | PN_REMOTE_ACTIVE);
Modified: qpid/proton/trunk/proton-c/src/messenger/subscription.c
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/src/messenger/subscription.c?rev=1547025&r1=1547024&r2=1547025&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/src/messenger/subscription.c (original)
+++ qpid/proton/trunk/proton-c/src/messenger/subscription.c Mon Dec 2 14:12:14 2013
@@ -45,6 +45,7 @@ void pn_subscription_finalize(void *obj)
{
pn_subscription_t *sub = (pn_subscription_t *) obj;
pn_free(sub->scheme);
+ pn_free(sub->address);
}
#define pn_subscription_hashcode NULL
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org