[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #59033] Possible memory leak in mqtt_disconnect
From: |
Ondrej Lufinka |
Subject: |
[lwip-devel] [bug #59033] Possible memory leak in mqtt_disconnect |
Date: |
Fri, 28 Aug 2020 09:13:00 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36 |
URL:
<https://savannah.nongnu.org/bugs/?59033>
Summary: Possible memory leak in mqtt_disconnect
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: ondrej_lufinka
Submitted on: Fri 28 Aug 2020 01:12:59 PM UTC
Category: Platform ports
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
lwIP version: git head
_______________________________________________________
Details:
I use LwIP on STM32 MCU. I have a working combination of LwIP + MbedTLS +
MQTT. I found a possible memory leak in function mqtt_disconnect. The PCB:
client->conn->inner_conn->state
used for connection is never released.
When I added the line
tcp_abandon((struct tcp_pcb *)client->conn->inner_conn->state, 0);
to the mqtt_disconnect function, the memory leak is gone.
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/bugs/?59033>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] [bug #59033] Possible memory leak in mqtt_disconnect,
Ondrej Lufinka <=