Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
fix fd leak
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Aug 29, 2019
1 parent a0d6f8b commit b580a4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ func readPackageInfoFromPath(apkpath string) (info PackageInfo, err error) {
err = errors.Wrap(err, apkpath)
return
}
defer pkg.Close()

info.PackageName = pkg.PackageName()
info.Label, _ = pkg.Label(nil)
info.MainActivity, _ = pkg.MainActivity()
Expand Down

0 comments on commit b580a4b

Please sign in to comment.