diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-02 03:50:55 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-02 06:51:58 +0100 |
commit | f05ef81b31bd0ca16278a8396f42fca75ca038c5 (patch) | |
tree | aa436f95141f67c503735513333608c6977ec9cb /extensions | |
parent | 3c1c6afa2e6671af8508e39b83a58f026655d7eb (diff) |
coverity#982972 & coverity#982971: fix memory leak
Change-Id: I3fa44aa5651584c5a90d9e18c75d0c825fcf05fc
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/nsplugin/source/npshell.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/source/nsplugin/source/npshell.cxx b/extensions/source/nsplugin/source/npshell.cxx index f476d1c2b96c..b1d3e199a975 100644 --- a/extensions/source/nsplugin/source/npshell.cxx +++ b/extensions/source/nsplugin/source/npshell.cxx @@ -784,6 +784,8 @@ NPP_StreamAsFile(NPP instance, NPStream *stream, const char* fname) { debug_fprintf(NSP_LOG_APPEND, "NPP_StreamAsFile:short write to %s. error: %s \n", localPathNew, strerror(errno)); + close(fdSrc); + close(fdDst); return; } } |