diff options
| author | yangwei <[email protected]> | 2023-10-07 16:02:36 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2023-10-07 16:02:36 +0800 |
| commit | d7f1f81f6ab0246248ca05bad31c22ecf507f218 (patch) | |
| tree | 5c2bb9500e1e29d157b4673057797f239248ccfa /src/packet_io/sendpacket.c | |
| parent | de09ab88e45a8fef1a9662c89ac880ea13c42895 (diff) | |
🐞 fix(__sapp_inject_ctrl_pkt): 修复发送控制报文时未释放内存的bug
Diffstat (limited to 'src/packet_io/sendpacket.c')
| -rw-r--r-- | src/packet_io/sendpacket.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/packet_io/sendpacket.c b/src/packet_io/sendpacket.c index 351b761..5e4d004 100644 --- a/src/packet_io/sendpacket.c +++ b/src/packet_io/sendpacket.c @@ -2915,6 +2915,7 @@ int __sapp_inject_ctrl_pkt(struct streaminfo *stream, enum sapp_inject_opt sio, { sapp_runtime_log(RLOG_LV_FATAL, "packet_io_send() ret < 0, stream_type:%d, addrtype:%d\n", stream->type, stream->addr.addrtype); } + packet_io_free_sendbuf(SEND_TYPE_LINK_INJECT, stream->threadnum); return ret; } |
