mesh: Fix memory leak when queuing OB pkts rapidly
authorBrian Gix <brian.gix@intel.com>
Mon, 22 Jun 2020 18:00:04 +0000 (11:00 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 28 Dec 2020 06:20:04 +0000 (11:50 +0530)
commit8ec0a80b9779f1b46d248f827661b2c7c602ae1b
tree137c5ef6db827734b18129e85955a1abc205151e
parentc8d4721ac7f007ad57cfa56169b6c255edd0842d
mesh: Fix memory leak when queuing OB pkts rapidly

If a new packet for outbound delivery is queued during the last
transmission of the only other packet being sent, the prior
packet got forgotten and leaked. This fix correctly deletes the prior
packet, but also makes sure it is given the proper oportunity for
transmission.

Change-Id: I1e05a8d55f9a8ee92b049be5bbcd24969a1b10d4
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
mesh/mesh-io-generic.c