mirror of https://github.com/apache/jclouds.git
Null out tmpFile to avoid remove after rename
This commit is contained in:
parent
6cefc99cf0
commit
6371235568
|
@ -496,6 +496,7 @@ public class FilesystemStorageStrategyImpl implements LocalStorageStrategy {
|
|||
if (!tmpFile.renameTo(outputFile)) {
|
||||
throw new IOException("Could not rename file " + tmpFile + " to " + outputFile);
|
||||
}
|
||||
tmpFile = null;
|
||||
|
||||
return base16().lowerCase().encode(actualHashCode.asBytes());
|
||||
} finally {
|
||||
|
|
Loading…
Reference in New Issue