Skip to content

Commit 95eba66

Browse files
committed
don't return temp string from GetInstallerLogPath()
1 parent 6fc0d11 commit 95eba66

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Installer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,11 @@ static Checkbox* CreateCheckbox(HWND hwndParent, const WCHAR* s, bool isChecked)
8989
return w;
9090
}
9191

92+
// caller has to free()
9293
char* GetInstallerLogPath() {
9394
TempStr dir = GetTempDirTemp();
9495
if (!dir) {
95-
return str::DupTemp("sumatra-install-log.txt");
96+
return str::Dup("sumatra-install-log.txt");
9697
}
9798
return path::Join(dir, "sumatra-install-log.txt");
9899
}

0 commit comments

Comments
 (0)