Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Close the correct file when using a metalink.xml file

When using librepo, PackageKit crashes after after issuing a few hundred
transactions with 'Too many open files' -- Sure enough, looking at the output
of lsof before it crashes, I have hundreds of open files to various metalink.xml
files.

Fix the typo so that the metalink file descriptor actually gets closed.
  • Loading branch information...
commit b83963e180e32e7ba3076714fb56835812c2f8cc 1 parent 6a09d9a
@hughsie hughsie authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  librepo/handle.c
View
2  librepo/handle.c
@@ -110,7 +110,7 @@ lr_handle_free(LrHandle *handle)
if (handle->mirrorlist_fd != -1)
close(handle->mirrorlist_fd);
if (handle->metalink_fd != -1)
- close(handle->mirrorlist_fd);
+ close(handle->metalink_fd);
lr_handle_free_list(&handle->urls);
lr_free(handle->fastestmirrorcache);
lr_free(handle->mirrorlist);
Please sign in to comment.
Something went wrong with that request. Please try again.