Skip to content

Several write tag memory leak issues #2559

@liuchenn

Description

@liuchenn

In mqtt_handle.c, several variables have already been assigned NULL before the neu_json_decode_write_free call.

Image Image

In rw_handle.c, when the handle_write function calls neu_plugin_op to send data to the southbound device, the neu_msg_new function performs a deep copy of cmd. Regardless of the return result of neu_plugin_op, neu_req_write_tag_fini should be called to free memory, right?
Image

Image Image

This issue was automatically translated from Chinese.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions