dundee: Clean up device in case of setup failure
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 9 Aug 2012 21:57:26 +0000 (18:57 -0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 10 Aug 2012 14:10:46 +0000 (17:10 +0300)
commit3f539364a2d0db7887bd943cd7bf6206f0d4dd5b
tree261fb7566ad2e5d11360160a455ae80a20fb0e4c
parent01126286f96856aab6b0de171830f4e8e842e1da
dundee: Clean up device in case of setup failure

If the creation and registration of Bluetooth DUN device fails we need to
clean up before return, otherwise we leak memory.
plugins/dundee.c