summaryrefslogtreecommitdiff
path: root/lib/rpmts.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-07-17 15:50:35 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-07-17 15:50:35 +0300
commitba644ed5aa949f6583ad5e011369527241b62a3c (patch)
tree3e51f3e319af7da809304e98ff26f5f848b5e522 /lib/rpmts.c
parentd422e661c1790db2d6a1e6fe36eff5eb4506ad5b (diff)
downloadlibrpm-tizen-ba644ed5aa949f6583ad5e011369527241b62a3c.tar.gz
librpm-tizen-ba644ed5aa949f6583ad5e011369527241b62a3c.tar.bz2
librpm-tizen-ba644ed5aa949f6583ad5e011369527241b62a3c.zip
Add (and use) refcounting for rpmKeyring and rpmPubkey
Diffstat (limited to 'lib/rpmts.c')
-rw-r--r--lib/rpmts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rpmts.c b/lib/rpmts.c
index 772e75811..0de27e308 100644
--- a/lib/rpmts.c
+++ b/lib/rpmts.c
@@ -278,7 +278,7 @@ rpmKeyring rpmtsGetKeyring(rpmts ts, int autoload)
}
keyring = ts->keyring;
}
- return keyring;
+ return rpmKeyringLink(keyring);
}
int rpmtsSetKeyring(rpmts ts, rpmKeyring keyring)
@@ -291,7 +291,7 @@ int rpmtsSetKeyring(rpmts ts, rpmKeyring keyring)
return -1;
rpmKeyringFree(ts->keyring);
- ts->keyring = keyring;
+ ts->keyring = rpmKeyringLink(keyring);
return 0;
}