chiark / gitweb /
libudev: fix memleak when enumerating childs
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 4 Sep 2013 10:36:19 +0000 (12:36 +0200)
committerKay Sievers <kay@vrfy.org>
Wed, 4 Sep 2013 12:56:06 +0000 (14:56 +0200)
commit51cc07576e119dea6e65478eeba9472979fd0936
tree1d738e9a3121085c46a6ad35c728b937347cc46f
parentee2babf4c36f9ab65e9ebbe966ed7839c532df45
libudev: fix memleak when enumerating childs

We need to free udev-devices again if they don't match. Funny that no-one
noticed it yet since valgrind is quite verbose about it.
Fix it and free non-matching devices.
src/libudev/libudev-enumerate.c