summaryrefslogtreecommitdiff
path: root/lib/fsm.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-13 13:05:55 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-13 13:05:55 +0300
commit511beb375763f84b04ca555c3c9df4c67738aee2 (patch)
treea4952e7bcbef2746ab137ed3b5869e42d23cd4f6 /lib/fsm.c
parent6ad4cbdfb52c4ea1b9f30f9580084dc3c94c5b60 (diff)
downloadrpm-511beb375763f84b04ca555c3c9df4c67738aee2.tar.gz
rpm-511beb375763f84b04ca555c3c9df4c67738aee2.tar.bz2
rpm-511beb375763f84b04ca555c3c9df4c67738aee2.zip
Fix some broken fooUnlink() usages
- unreferencing should always go through fooFree() which does the real refcounting and frees when references go out
Diffstat (limited to 'lib/fsm.c')
-rw-r--r--lib/fsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fsm.c b/lib/fsm.c
index d1e0adbcd..061e97b2c 100644
--- a/lib/fsm.c
+++ b/lib/fsm.c
@@ -142,7 +142,7 @@ static void * mapFreeIterator(void * p)
/* XXX rpmswExit() */
iter->ts = rpmtsFree(iter->ts);
iter->te = NULL; /* XXX rpmte is not refcounted yet */
- iter->fi = rpmfiUnlink(iter->fi);
+ iter->fi = rpmfiFree(iter->fi);
}
return _free(p);
}