Fix some memory leaks in the udev handler.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>