Commit: e468284ada70e7b87ebc136ca4be5677cece6415
Parent: 227cfdf8e01f639f74b36b179f8ccf9a2061e932
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2020-06-11 23:45:03
Tree: 41053cbeaadb7a0979f1f6c2a5b83e1fb2ff2348

adapter: Fix leaking filter pattern When a discovery client has set a pattern as filter the code allocates the string so it needs to be freed with the filter otherwise it leads to the following leak: 10 bytes in 2 blocks are definitely lost in loss record 19 of 265 at 0x483980B: malloc (vg_replace_malloc.c:309) by 0x4D9FF7E: strdup (in /usr/lib64/libc-2.30.so) by 0x1FC8E7: parse_pattern (adapter.c:2454) by 0x1FF37B: parse_discovery_filter_entry (adapter.c:2480) by 0x1FF37B: parse_discovery_filter_dict (adapter.c:2538) by 0x2020AF: set_discovery_filter (adapter.c:2589) by 0x24AD63: process_message.isra.0 (object.c:259) by 0x24B40F: generic_message (object.c:1079) by 0x4A670B7: ??? (in /usr/lib64/libdbus-1.so.3.19.11) by 0x4A57763: dbus_connection_dispatch (in /usr/lib64/libdbus-1.so.3.19.11) by 0x2459CF: message_dispatch (mainloop.c:72) by 0x4963E8A: ??? (in /usr/lib64/libglib-2.0.so.0.6200.6) by 0x496756F: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.6200.6)

Diffstat

M src/adapter.c | 1 +

1 files changed, 1 insertions(+), 0 deletions(-)

View Full Diff | Patch