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/02/27 22:26:46 UTC

[2/2] 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/c9de6b31
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/c9de6b31
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/c9de6b31

Branch: refs/heads/develop
Commit: c9de6b3118b65081a1640bfb1107eb6f59d06aa3
Parents: 5000e8d
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Mon Feb 27 14:23:50 2017 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Mon Feb 27 14:26:31 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/c9de6b31/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;
         }
     }