kernel - Fix vm_object leak which could exhaust swap space
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 20 Aug 2011 20:38:42 +0000 (13:38 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 20 Aug 2011 20:38:42 +0000 (13:38 -0700)
commit1f8fc82a8ce7b6648c3ec8a0f6149e3e8c3920f6
tree4c0bda2225f11ea0e016ebf1d53f030ce8932e22
parentf12e9fadcf4eafb889556dc90c937023e082e0ae
kernel - Fix vm_object leak which could exhaust swap space

* Fix a recently introduced vm_object leak.  When deallocating a vm_object
  ref_count must be decremented prior to calling vm_object_collapse() or
  we can wind up leaving an object sitting around with 0 refs on it.

Reported-by: ftigeot, others
sys/vm/vm_object.c