You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/12/13 03:06:28 UTC
[2/6] incubator-mynewt-core git commit: newtmgr - Fix unlikely mbuf
leak.
newtmgr - Fix unlikely mbuf leak.
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/a7d10ec6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/a7d10ec6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/a7d10ec6
Branch: refs/heads/develop
Commit: a7d10ec666ba5b2f4890673c8b64950dc9091187
Parents: 52cfd96
Author: Christopher Collins <cc...@apache.org>
Authored: Mon Dec 12 15:06:10 2016 -0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Mon Dec 12 18:54:25 2016 -0800
----------------------------------------------------------------------
mgmt/newtmgr/src/newtmgr.c | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a7d10ec6/mgmt/newtmgr/src/newtmgr.c
----------------------------------------------------------------------
diff --git a/mgmt/newtmgr/src/newtmgr.c b/mgmt/newtmgr/src/newtmgr.c
index b57d0a3..b3c4289 100644
--- a/mgmt/newtmgr/src/newtmgr.c
+++ b/mgmt/newtmgr/src/newtmgr.c
@@ -98,6 +98,7 @@ nmgr_send_err_rsp(struct nmgr_transport *nt, struct os_mbuf *m,
{
hdr = nmgr_init_rsp(m, hdr);
if (!hdr) {
+ os_mbuf_free_chain(m);
return;
}