session: Reorder shutdown sequence
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 9 Apr 2013 16:13:07 +0000 (18:13 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 18 Apr 2013 05:43:43 +0000 (08:43 +0300)
commitd0afc98e7bbe46d48d0f0212d8062a52e004f986
tree1b68488d96e3c6587df792bd3a59f5cffafe311a
parentd1e576cfbe3d7458e984264ba2efc3f17088a0ce
session: Reorder shutdown sequence

By calling __connman_session_cleanup() before __connman_plugin_cleanup()
we make sure all resources allocated can released in the correct order.
The code assumes after an successful allocation, free will always work
and therefore we double free allocated memory.
src/main.c