coverity#982972 & coverity#982971: fix memory leak
Change-Id: I3fa44aa5651584c5a90d9e18c75d0c825fcf05fc
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user