dundee: Fix error code handling in add_device()
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Fri, 17 Aug 2012 07:47:07 +0000 (09:47 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 17 Aug 2012 10:01:56 +0000 (13:01 +0300)
commit01bae4fdcd7e3cdd37d311156f4d20854aa79be0
treea52a0b7039c26f3b12ca9b4775a5405edb2b94c7
parenta669c2da5024befaa2db4d7213209355bdd5307a
dundee: Fix error code handling in add_device()

If no error happens then we should just return and not run
into the cleanup code. And when we cleanup we should not double
free pointers.
plugins/dundee.c