Blargh, more fdFree() braindamage
- Commit 429b933b42
fixes the fd-leak
regression in rpm 4.10, but we already have code which relies
on the new behavior and segfaults with the former one. Adjust
rpmcpioClose() to the old behavior to get master tree back to
working shape. TODO: fix this properly some rainy day (oh and see
http://geekandpoke.typepad.com/geekandpoke/2012/08/likelihood.html)
This commit is contained in:
parent
429b933b42
commit
d6b925342f
|
@ -335,7 +335,8 @@ int rpmcpioClose(rpmcpio_t cpio)
|
||||||
if ((cpio->mode & O_ACCMODE) == O_WRONLY) {
|
if ((cpio->mode & O_ACCMODE) == O_WRONLY) {
|
||||||
rc = rpmcpioTrailerWrite(cpio);
|
rc = rpmcpioTrailerWrite(cpio);
|
||||||
}
|
}
|
||||||
cpio->fd = fdFree(cpio->fd);
|
fdFree(cpio->fd);
|
||||||
|
cpio->fd = NULL;
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue