coverity#982972 & coverity#982971: fix memory leak

Change-Id: I3fa44aa5651584c5a90d9e18c75d0c825fcf05fc
This commit is contained in:
Markus Mohrhard
2013-03-02 03:50:55 +01:00
parent 3c1c6afa2e
commit f05ef81b31

View File

@@ -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;
}
}