diff options
author | Ossama Othman <ossama.othman@intel.com> | 2013-11-26 09:48:34 -0800 |
---|---|---|
committer | Ossama Othman <ossama.othman@intel.com> | 2013-11-26 09:48:34 -0800 |
commit | 086b50649970edd6cf2470d840fcec75035b1d19 (patch) | |
tree | 807edd35f9b7dfde2230e37cef3f878f2e652821 | |
parent | 265a1f1077fc011c3da0cfec497c917141a1e8dc (diff) | |
download | settings-daemon-086b50649970edd6cf2470d840fcec75035b1d19.tar.gz settings-daemon-086b50649970edd6cf2470d840fcec75035b1d19.tar.bz2 settings-daemon-086b50649970edd6cf2470d840fcec75035b1d19.zip |
Fixed memory leak that occurred on failed service (dis)connect.
Change-Id: If706a7ccc1e5036c9e0b56554b80ae265a4d90d5
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
-rw-r--r-- | plugins/connman/service.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/connman/service.cpp b/plugins/connman/service.cpp index 757e1d7..463b191 100644 --- a/plugins/connman/service.cpp +++ b/plugins/connman/service.cpp @@ -71,7 +71,7 @@ ivi::settings::service::call_method(char const * name, nullptr, // Not cancellable &error)); - unique_ptr<GError> safe_error; + unique_ptr<GError> safe_error(error); if (ret != nullptr) { // Nothing to add to successful response. |