Avoid memory leaks on OBEX module

Signed-off-by: Michal Čihař <michal@cihar.com>