diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-02 03:57:42 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-02 06:51:59 +0100 |
commit | 5ff1afbf1ef1dbea81c156572e7cd125bde70778 (patch) | |
tree | d0a8d79ddd9aa48e2a35b3ab6c26d9e7da99e04e /extensions | |
parent | f05ef81b31bd0ca16278a8396f42fca75ca038c5 (diff) |
coverity#982974: fix memory leak
Change-Id: I8501d26e0f0447b219ecbbdc9262f13158f5aa0a
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/plugin/unx/npnapi.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/source/plugin/unx/npnapi.cxx b/extensions/source/plugin/unx/npnapi.cxx index bfc6fa16cdab..90b82bcad108 100644 --- a/extensions/source/plugin/unx/npnapi.cxx +++ b/extensions/source/plugin/unx/npnapi.cxx @@ -288,7 +288,10 @@ static NPError l_NPN_RequestRead( NPStream* stream, NPByteRange* rangeList ) NULL ); if( ! pMes ) + { + delete[] pArray; return NPERR_GENERIC_ERROR; + } NPError aRet = pConnector->GetNPError( pMes ); delete [] pArray; |