diff --git a/src/Picocrypt.go b/src/Picocrypt.go index 0f953a7..640d320 100644 --- a/src/Picocrypt.go +++ b/src/Picocrypt.go @@ -2438,6 +2438,7 @@ func unpackArchive(zipPath string) error { _, writeErr := dstFile.Write(buffer[:n]) if writeErr != nil { dstFile.Close() + os.Remove(dstFile.Name()) return writeErr }