diff options
author | Peter Wu <peter@lekensteyn.nl> | 2017-06-26 23:40:22 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-06-29 02:47:13 +0000 |
commit | c21ee5d0a7d4fbb136736596399b95c609c0559c (patch) | |
tree | 6845bf68dac0ee5fe90583fbdb85320bcdea86f4 /cmake | |
parent | e7935f456885b2aa376d96937f113bfc68e15eb3 (diff) | |
download | wireshark-c21ee5d0a7d4fbb136736596399b95c609c0559c.tar.gz |
Qt: fix alloc-dealloc-mismatch while adding named pipe
ManageInterfacesDialog::on_addPipe_clicked uses g_new0 to create an
"interface_t" instance, but InterfaceTreeCacheModel uses qDeleteAll
which results in ASAN reporting "alloc-dealloc-mismatch (malloc vs
operator delete)".
To fix this, remove the dynamic allocation and make
InterfaceTreeCacheModel store the instance internally.
Change-Id: I9426dfc88d0a54a889bbbc9cf336c0a6af76920e
Reviewed-on: https://code.wireshark.org/review/22410
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Roland Knall <rknall@gmail.com>
(cherry picked from commit 6bc0ba845100acb3c721e4f945bafeb1bed6c942)
Reviewed-on: https://code.wireshark.org/review/22445
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'cmake')
0 files changed, 0 insertions, 0 deletions