]> git.ipfire.org Git - thirdparty/hostap.git/commit
dbus: Fix some memory leaks on error paths
authorJouni Malinen <jouni@codeaurora.org>
Wed, 8 May 2019 19:06:46 +0000 (22:06 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 8 May 2019 19:06:46 +0000 (22:06 +0300)
commita96c7836451860f93f88bd739c132645dd581af1
tree9c707321de5acfa5661f2b85ddae432eb900d737
parente3b39e62c2ded588943190c941084e4a08701bdf
dbus: Fix some memory leaks on error paths

wpa_dbus_dict_close_write() was not called if
fill_dict_with_properties() fails and that could result in leaking
memory. Fix this in two cases. There might be other missing calls to
jouni@codeaurora.org() on error paths, but those will need to be handled
separately with more complex changes.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/dbus/dbus_new_helpers.c