diff --git a/interfacer/src/browsh/firefox_windows.go b/interfacer/src/browsh/firefox_windows.go index 3eb77540..d167bb40 100644 --- a/interfacer/src/browsh/firefox_windows.go +++ b/interfacer/src/browsh/firefox_windows.go @@ -22,6 +22,8 @@ func getFirefoxPath() string { if err != nil { Shutdown(fmt.Errorf("Error reading Windows registry: %w", err)) } + defer k.Close() + path, _, err := k.GetStringValue("PathToExe") if err != nil { Shutdown(fmt.Errorf("Error reading Windows registry: %w", err))