diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-07-17 15:50:35 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-07-17 15:50:35 +0300 |
commit | ba644ed5aa949f6583ad5e011369527241b62a3c (patch) | |
tree | 3e51f3e319af7da809304e98ff26f5f848b5e522 /lib/rpmts.c | |
parent | d422e661c1790db2d6a1e6fe36eff5eb4506ad5b (diff) | |
download | rpm-ba644ed5aa949f6583ad5e011369527241b62a3c.tar.gz rpm-ba644ed5aa949f6583ad5e011369527241b62a3c.tar.bz2 rpm-ba644ed5aa949f6583ad5e011369527241b62a3c.zip |
Add (and use) refcounting for rpmKeyring and rpmPubkey
Diffstat (limited to 'lib/rpmts.c')
-rw-r--r-- | lib/rpmts.c | 4 |
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; } |