From 086b50649970edd6cf2470d840fcec75035b1d19 Mon Sep 17 00:00:00 2001 From: Ossama Othman Date: Tue, 26 Nov 2013 09:48:34 -0800 Subject: Fixed memory leak that occurred on failed service (dis)connect. Change-Id: If706a7ccc1e5036c9e0b56554b80ae265a4d90d5 Signed-off-by: Ossama Othman --- plugins/connman/service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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 safe_error; + unique_ptr safe_error(error); if (ret != nullptr) { // Nothing to add to successful response. -- cgit v1.2.3