Fix git zombie process

This commit is contained in:
Thomas Miceli 2023-04-20 21:48:25 +02:00
parent fddc50e3cc
commit 14dac703c8
No known key found for this signature in database
GPG Key ID: D86C6F6390AF050F
1 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,7 @@ func GetFileContent(user string, gist string, revision string, filename string,
if err != nil {
return "", false, err
}
defer cmd.Wait()
return truncateCommandOutput(stdout, maxBytes)
}
@ -126,6 +127,7 @@ func GetLog(user string, gist string, skip int) ([]*Commit, error) {
if err != nil {
return nil, err
}
defer cmd.Wait()
return parseLog(stdout, 2<<18), nil
}