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

Commit f8dd1bdb authored by Caroline Tice's avatar Caroline Tice
Browse files

Fix potental memory leak (compiler warning).

This CL fixes the following warning:

EffectProxy.cpp:93:8: warning: Potential leak of memory pointed to by
'pContext'.

BUG=None
Test: WITH_TIDY=1 WITH_STATIC_ANLYZER=1 mm

Change-Id: I7f127042eb50d3d6297473bfd90a5402b182cc85
parent 92047ec3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -91,6 +91,7 @@ int EffectProxyCreate(const effect_uuid_t *uuid,
       delete[] pContext->sube;
       delete[] pContext->desc;
       delete[] pContext->aeli;
       delete pContext;
       return -EINVAL;
    }
    // Check which is the HW descriptor and copy the descriptors