mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vipulrah...@apache.org
Subject incubator-mynewt-core git commit: Fix accidental free caused by a merge earlier
Date Thu, 23 Feb 2017 22:56:49 GMT
Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/sensors_branch 0f4d2e806 -> 9cc6a785e


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/sensors_branch
Commit: 9cc6a785e1abb627ea2b18b746c18f011d7bf684
Parents: 0f4d2e8
Author: Vipul Rahane <vipulrahane@apache.org>
Authored: Thu Feb 23 14:55:41 2017 -0800
Committer: Vipul Rahane <vipulrahane@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;
 }
 /*---------------------------------------------------------------------------*/


Mime
View raw message