Skip to content

Commit

Permalink
MPFR custodian shutdown procedure tries to clear the constants cache
Browse files Browse the repository at this point in the history
even when MPFR isn't loaded; this should close PR 13423
  • Loading branch information
Neil Toronto committed Jan 9, 2013
1 parent 6e21e34 commit 441ad6e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions collects/math/private/bigfloat/mpfr.rkt
Expand Up @@ -81,9 +81,10 @@
(register-custodian-shutdown
mpfr-free-cache ; acts as a "random" object for a shutdown handle
(λ (free)
;; The direct reference here is important, since custodian holds only
;; a weak reference to shutdown handle:
(mpfr-free-cache))))
(when mpfr-lib
;; The direct reference here is important, since custodian holds only
;; a weak reference to shutdown handle:
(mpfr-free-cache)))))

;; ===================================================================================================
;; MPFR types
Expand Down

0 comments on commit 441ad6e

Please sign in to comment.