summaryrefslogtreecommitdiff
path: root/scripts/libtooldeps.sh
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-03-08 10:17:47 +0200
committerPanu Matilainen <pmatilai@redhat.com>2012-03-08 10:17:47 +0200
commita74b9b72a6dd3d936cab2c3c858a3c293ec6fcbd (patch)
treefc2d65b70ef13c9c4d1fdb27e6376229afc41fb7 /scripts/libtooldeps.sh
parent1432d5338336e6000263ad5d6a5836574e85ff91 (diff)
downloadlibrpm-tizen-a74b9b72a6dd3d936cab2c3c858a3c293ec6fcbd.tar.gz
librpm-tizen-a74b9b72a6dd3d936cab2c3c858a3c293ec6fcbd.tar.bz2
librpm-tizen-a74b9b72a6dd3d936cab2c3c858a3c293ec6fcbd.zip
Optimize python db index instances list generation and fix related leak
- The number of entries is well know, allocate the entire list at once and set instead of appending one by one. Also cures a leak from created tuples not being decref'ed before - list set steals the reference whereas append requires an additional decref to transfer the ownership to the list.
Diffstat (limited to 'scripts/libtooldeps.sh')
0 files changed, 0 insertions, 0 deletions