Upstream: wispr: Free wispr portal context in the relevant place
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Tue, 23 Oct 2012 07:26:44 +0000 (10:26 +0300)
committerJaehyun Kim <jeik01.kim@samsung.com>
Sat, 6 Apr 2013 13:40:53 +0000 (22:40 +0900)
commit820fce47c1447082f2384142fdc750c4ef1d5ec0
tree71abe9b2d56cec8feca0c97e47f8f45ab9eadb35
parent11c6a56e2e605575f9467685f303585583ee0fef
Upstream: wispr: Free wispr portal context in the relevant place

This fixes 2 issues:
- calling __connman_service_ipconfig_indicate_state() might lead to
  restart wispr_portal check, so context should not be freed afterward
  but beforehand.
- freeing the context in wispr_manage_message() should not happen since
  wispr_manage_message() will return back to wispr_portal_web_result()
  where we can still use the context.

Thanks to Julien Massot <jmassot@aldebaran-robotics.com> who reported
the issue and provided logs.
src/wispr.c