mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
mqtt: destroy PUBLISH pointers each time
This commit is contained in:
parent
beacabbdb1
commit
f17bb1aa29
1 changed files with 6 additions and 2 deletions
|
@ -1276,8 +1276,12 @@ bail1:
|
|||
w, (enum lws_callback_reasons)n,
|
||||
w->user_space,
|
||||
(void *)pub,
|
||||
chunk))
|
||||
return 1;
|
||||
chunk)) {
|
||||
par->payload_consumed = 0;
|
||||
lws_free_set_NULL(pub->topic);
|
||||
lws_free_set_NULL(wsi->mqtt->rx_cpkt_param);
|
||||
return 1;
|
||||
}
|
||||
} lws_end_foreach_ll(w, mux.sibling_list);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue