Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbac608c authored by Manoj Gupta's avatar Manoj Gupta
Browse files

Fix static analyzer warnings.

Fix the following warning:
frameworks/native/libs/binder/Value.cpp:187:11: warning: Use of memory
after it is freed [clang-analyzer-cplusplus.NewDelete]

Bug: b/27101951
Test:Warnings are gone.
Change-Id: Iebd91d87dd740a39c690c25d690960f7e43d6dbe
parent 71f6de41
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -182,10 +182,12 @@ Value& Value::swap(Value &rhs)

Value& Value::operator=(const Value& rhs)
{
    if (this != &rhs) {
        delete mContent;
        mContent = rhs.mContent
            ? rhs.mContent->clone()
            : NULL;
    }
    return *this;
}