Fix dangling databases from iterators (ticket #820)
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 15 Apr 2011 07:11:41 +0000 (10:11 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 15 Apr 2011 07:11:41 +0000 (10:11 +0300)
commit3544062a6ed8f165eb773766ed5540b96f1bcc03
tree37eda48d03917aae7aac6c8b51031073285a0563
parentdcf650f5a73846773c7b81de08e2608391f733b8
Fix dangling databases from iterators (ticket #820)
- Call rpmdbClose() instead of rpmdbUnlink() on iterator free to
  actually close the db when refcount goes to zero. This
  fixes the situation where a caller closes a database handle
  while iterators are active: the iterators stay usable and close
  the db when the last one exits.
lib/rpmdb.c