diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-09-11 14:40:01 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-09-11 14:40:01 +0300 |
commit | 8a1f9c13fddb6c39a11950f6f934c71e050ae441 (patch) | |
tree | 7745342340ebbf96b7c939e959d05e04a52ad89c /lib/rpmds.c | |
parent | 0d17da2615efe3e7168000f57ddd285365dd7515 (diff) | |
download | librpm-tizen-8a1f9c13fddb6c39a11950f6f934c71e050ae441.tar.gz librpm-tizen-8a1f9c13fddb6c39a11950f6f934c71e050ae441.tar.bz2 librpm-tizen-8a1f9c13fddb6c39a11950f6f934c71e050ae441.zip |
Oops, only private pool should be frozen on ds create
Diffstat (limited to 'lib/rpmds.c')
-rw-r--r-- | lib/rpmds.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rpmds.c b/lib/rpmds.c index 7e6582a09..6f7d674ad 100644 --- a/lib/rpmds.c +++ b/lib/rpmds.c @@ -195,8 +195,9 @@ rpmds rpmdsNewPool(rpmstrPool pool, Header h, rpmTagVal tagN, int flags) rpmtdFreeData(&names); rpmtdFreeData(&evr); - /* freeze the pool to save memory and lock strings in place */ - rpmstrPoolFreeze(ds->pool); + /* freeze the pool to save memory, but only if private pool */ + if (ds->pool != pool) + rpmstrPoolFreeze(ds->pool); } exit: |