diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-12-20 21:31:23 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-12-20 21:31:23 +0000 |
commit | 07bd1b5856acd5815b4c6f92e6cb8b7ddcbebd42 (patch) | |
tree | 5a43fff2554d9d5c0d77dda4a76773185bfbfe76 /usr.sbin | |
parent | f3cad9b96de2f689dfe7a9a0e40560d893168b84 (diff) |
plug fd leak.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/pkg_add | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add index 270d4ba6c1b..c76037e8ce9 100644 --- a/usr.sbin/pkg_add/pkg_add +++ b/usr.sbin/pkg_add/pkg_add @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_add,v 1.156 2004/12/20 17:17:32 espie Exp $ +# $OpenBSD: pkg_add,v 1.157 2004/12/20 21:31:22 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -602,6 +602,7 @@ sub install_package for my $dep (keys %{$handle->{solved_dependencies}}) { next if is_installed($dep); print "Can't install $pkg: can't resolve $dep\n"; + $handle->close(); return (); } |