diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-04-23 07:55:10 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-24 10:37:21 +0200 |
commit | 02a9f065c5df58cc9dbbc947d7367c80bd1d1ca5 (patch) | |
tree | ad6e51ece23d6094fafc19d5b158bb90e10ee2c5 /src/plugins/bearer/networkmanager/qnetworkmanagerservice.h | |
parent | f9d7f85079f0ecf8f36399eeccc42bad8f1d3306 (diff) |
Autotest: fix use of dangling pointer
The "data" pointer became technically dangling after line 1866 did
copy = data;
as copy was the last reference to the original data. That made the
pointer address available to be reused by the system malloc(), which
sometimes happened, causing the unit test to fail.
Discussed-on: http://lists.qt-project.org/pipermail/development/2014-April/016588.html
Change-Id: Ifa6a27bd53a6e60392b77a6609f2d47148695211
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/plugins/bearer/networkmanager/qnetworkmanagerservice.h')
0 files changed, 0 insertions, 0 deletions