diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-03-08 10:17:47 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-03-08 10:17:47 +0200 |
commit | a74b9b72a6dd3d936cab2c3c858a3c293ec6fcbd (patch) | |
tree | fc2d65b70ef13c9c4d1fdb27e6376229afc41fb7 /misc | |
parent | 1432d5338336e6000263ad5d6a5836574e85ff91 (diff) | |
download | librpm-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 'misc')
0 files changed, 0 insertions, 0 deletions