A memory leak vulnerability exists in NanoMQ 0.17.2. The vulnerability is located in the file message.c. An attacker could exploit this vulnerability to cause a denial of service attack by causing the program to consume all available memory resources.
**Describe the bug**
您好，我们在NanoMQ当前版本中还发现了一项内存泄露，以下为详细漏洞信息以供开发人员参考。

School of Cyber Science and Technology, Shandong University

**Expected behavior**

如果在编译时启用 ASAN，NanoMQ 会崩溃并显示 ASAN 信息。
![image](https://user-images.githubusercontent.com/44093631/232076656-b9f891f5-6a0f-4018-ab19-a35cec93e74d.png)

**To Reproduce**
1. start nanomq with ./nanomq start
2. Send the packet：nc 127.0.0.1 1883 < ./leak.raw
3. NanoMQ crashes
[leak1.zip](https://github.com/emqx/nanomq/files/11234045/leak1.zip)


** Environment Details **
 - NanoMQ version：master branch version commit #8c54cd7
 - Operating system and version：Ubuntu 20.04
 - Compiler and language used：gcc 9.4.0 clang 10.0.0
 - testing scenario



potential memleak 
This is a GitHub Issue
repo:nanomq
owner:emqx
Title : potential memleak 
Issue date:

--- start body ---
**Describe the bug**
您好，我们在NanoMQ当前版本中还发现了一项内存泄露，以下为详细漏洞信息以供开发人员参考。

School of Cyber Science and Technology, Shandong University

**Expected behavior**

如果在编译时启用 ASAN，NanoMQ 会崩溃并显示 ASAN 信息。
![image](https://user-images.githubusercontent.com/44093631/232076656-b9f891f5-6a0f-4018-ab19-a35cec93e74d.png)

**To Reproduce**
1. start nanomq with ./nanomq start
2. Send the packet：nc 127.0.0.1 1883 < ./leak.raw
3. NanoMQ crashes
[leak1.zip](https://github.com/emqx/nanomq/files/11234045/leak1.zip)


** Environment Details **
 - NanoMQ version：master branch version commit #8c54cd7
 - Operating system and version：Ubuntu 20.04
 - Compiler and language used：gcc 9.4.0 clang 10.0.0
 - testing scenario



--- end body ---
