You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2017/03/07 00:04:59 UTC
[04/50] incubator-mynewt-core git commit: net/oic;
fix mbuf leak. Noticed in inspection.
net/oic; fix mbuf leak. Noticed in inspection.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/89731c6e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/89731c6e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/89731c6e
Branch: refs/heads/1_0_0_dev
Commit: 89731c6eaa4ebb33779eaf4e8da9ce18a219706f
Parents: 8959ce9
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Mon Feb 27 14:23:50 2017 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Mon Mar 6 15:47:51 2017 -0800
----------------------------------------------------------------------
net/oic/src/messaging/coap/observe.c | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/89731c6e/net/oic/src/messaging/coap/observe.c
----------------------------------------------------------------------
diff --git a/net/oic/src/messaging/coap/observe.c b/net/oic/src/messaging/coap/observe.c
index 234b2da..24ddd2a 100644
--- a/net/oic/src/messaging/coap/observe.c
+++ b/net/oic/src/messaging/coap/observe.c
@@ -224,6 +224,7 @@ coap_notify_observers(oc_resource_t *resource,
response_buf = &response_buffer;
if (response_buf->code == OC_IGNORE) {
OC_LOG_ERROR("coap_notify_observers: Resource ignored request\n");
+ os_mbuf_free_chain(m);
return num_observers;
}
}