proc: fix nil pointer exception when Attach fails

Fixes #1471
This commit is contained in:
aarzilli
2019-01-28 14:23:10 +01:00
committed by Derek Parker
parent b0056ebc97
commit 2e0a331fdc

View File

@ -416,7 +416,10 @@ func (bi *BinaryInfo) Close() error {
if bi.sepDebugCloser != nil {
bi.sepDebugCloser.Close()
}
if bi.closer != nil {
return bi.closer.Close()
}
return nil
}
func (bi *BinaryInfo) setLoadError(fmtstr string, args ...interface{}) {