diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-06-19 16:24:56 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-06-19 16:24:56 +0000 |
commit | 7ed9a0ff65a5f4c62105bab9b71f93afd6966215 (patch) | |
tree | da7f744895846758ad06f05181c6e2a83fa8a7ea /URPM.xs | |
parent | 40e0207fb18f71389800bc3086a7a846d7bc8d64 (diff) | |
download | perl-URPM-7ed9a0ff65a5f4c62105bab9b71f93afd6966215.tar perl-URPM-7ed9a0ff65a5f4c62105bab9b71f93afd6966215.tar.gz perl-URPM-7ed9a0ff65a5f4c62105bab9b71f93afd6966215.tar.bz2 perl-URPM-7ed9a0ff65a5f4c62105bab9b71f93afd6966215.tar.xz perl-URPM-7ed9a0ff65a5f4c62105bab9b71f93afd6966215.zip |
(rpmRunTransactions_callback) workaround changes in rpm-4.10.0 resulting in fd leaks (mga#6453)
rationale:
commit 4c1f7e335de1724661ce63c53186d161ab71a63f changed rpm-4.10 so that
fdFree() always return NULL whereas previously it would return the
supposedly free'd fd back if the fd had remaining references.
This prevent us to call fdClose() thus to really close the fd
we should not close fdLink() which set ref counter to 2 anyway...
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1340,7 +1340,6 @@ static void *rpmRunTransactions_callback(__attribute__((unused)) const void *h, } PUTBACK; } else if (callback == td->callback_close) { - fd = fdFree(fd); if (fd) { Fclose(fd); fd = NULL; |