Fix accidental free caused by a merge earlier
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/9cc6a785 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/9cc6a785 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/9cc6a785 Branch: refs/heads/develop Commit: 9cc6a785e1abb627ea2b18b746c18f011d7bf684 Parents: 0f4d2e8 Author: Vipul Rahane <vipulrah...@apache.org> Authored: Thu Feb 23 14:55:41 2017 -0800 Committer: Vipul Rahane <vipulrah...@apache.org> Committed: Thu Feb 23 14:55:41 2017 -0800 ---------------------------------------------------------------------- net/oic/src/messaging/coap/observe.c | 3 --- 1 file changed, 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9cc6a785/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 499cdb5..234b2da 100644 --- a/net/oic/src/messaging/coap/observe.c +++ b/net/oic/src/messaging/coap/observe.c @@ -304,9 +304,6 @@ coap_notify_observers(oc_resource_t *resource, if (m) { os_mbuf_free_chain(m); } - if (m) { - os_mbuf_free_chain(m); - } return num_observers; } /*---------------------------------------------------------------------------*/