mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 14:47:20 +01:00
gnu-maintenance: Fix file descriptor leak.
* guix/gnu-maintenance.scm (official-gnu-packages): Close the port returned by FETCH.
This commit is contained in:
parent
9aec35d265
commit
2134228a7d
1 changed files with 4 additions and 1 deletions
|
@ -161,7 +161,10 @@ (define official-description
|
||||||
"doc-url"
|
"doc-url"
|
||||||
"download-url")
|
"download-url")
|
||||||
'("doc-url" "language"))))
|
'("doc-url" "language"))))
|
||||||
(read-records (fetch %package-list-url #:text? #t))))
|
(let* ((port (fetch %package-list-url #:text? #t))
|
||||||
|
(lst (read-records port)))
|
||||||
|
(close-port port)
|
||||||
|
lst)))
|
||||||
|
|
||||||
(define (find-packages regexp)
|
(define (find-packages regexp)
|
||||||
"Find GNU packages which satisfy REGEXP."
|
"Find GNU packages which satisfy REGEXP."
|
||||||
|
|
Loading…
Reference in a new issue