cwFile.cpp : Changed fnToStr() to properly close() the source file handle.
This commit is contained in:
parent
bfe9d9ebfc
commit
d3d4c7c6f9
@ -81,7 +81,6 @@ namespace cw
|
||||
|
||||
buf = _fileToBuf(h,nn,bufByteCntPtr);
|
||||
|
||||
return buf;
|
||||
errLabel:
|
||||
close(h);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user