~lkundrak/network-manager/launchpad-stable-1.4

Viewing all changes in revision 10887.

  • Committer: Thomas Haller
  • Date: 2017-05-02 16:30:09 UTC
  • Revision ID: git-v1:0bced2c5ef4a4e7ae3d725b0d16dc54ed822d7f6
policy: fix memleak in lookup_callback() and cancelling

When the operation is cancelled, we must not touch user_data. Note that
NM_POLICY_GET_PRIVATE() theoretically doesn't dereference the pointer
(does it?) but doing pointer arithmetic on a dangling pointer is a very
ugly thing to do.

And of course, the memleak.

Fixes: 5c716c8af8ddca1d3f7510494754d875b01a8889
Fixes: a2cdf632045d60b26f7aff470dedb56c1f9b938d
(cherry picked from commit 3215508293c26e9e8531c2482def598ef1bbbefd)
(cherry picked from commit f1469558c0e117b41b2eb36ab1010f732a696374)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: