diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-04-17 11:40:09 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-04-17 11:50:39 +0800 |
commit | 8245f2555d8a253238be888cf3e5693a2e7cbefc (patch) | |
tree | 20a4b6a0946d37d5fcd5f5384163217e8bd180c4 /utils/hooks | |
parent | a1fb38f17bfa60aac89d0dd21dd8ccc739d794bf (diff) | |
download | talos-petitboot-8245f2555d8a253238be888cf3e5693a2e7cbefc.tar.gz talos-petitboot-8245f2555d8a253238be888cf3e5693a2e7cbefc.zip |
discover/udev: fix double free on udev_init failures
If the udev monitor or enumerate functions fail, we'll call the
udev_unref and udev_monitor_unref functions twice: once in the cleanup
path and once in the talloc destructor.
This change moves all cleanup to the talloc destructor, so we only do
the unrefs once.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'utils/hooks')
0 files changed, 0 insertions, 0 deletions