Null out tmpFile to avoid remove after rename

This commit is contained in:
Andrew Gaul 2016-02-05 12:35:27 -08:00
parent 6cefc99cf0
commit 6371235568
1 changed files with 1 additions and 0 deletions

View File

@ -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 {