summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-02 03:50:55 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-02 06:51:58 +0100
commitf05ef81b31bd0ca16278a8396f42fca75ca038c5 (patch)
treeaa436f95141f67c503735513333608c6977ec9cb /extensions
parent3c1c6afa2e6671af8508e39b83a58f026655d7eb (diff)
coverity#982972 & coverity#982971: fix memory leak
Change-Id: I3fa44aa5651584c5a90d9e18c75d0c825fcf05fc
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/nsplugin/source/npshell.cxx2
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;
}
}