From maechler at stat.math.ethz.ch  Tue Nov 25 16:13:14 2003
From: maechler at stat.math.ethz.ch (maechler@stat.math.ethz.ch)
Date: Tue Nov 25 16:12:13 2003
Subject: [Rd] dwilcox , pwilcox, qwilcox are not freeing memory (PR#5314)
Message-ID: <20031125151314.513C2F4DB@slim.kubism.ku.dk>

>>>>> "jean" == jean coursol <jean.coursol@math.u-psud.fr>
>>>>>     on Tue, 25 Nov 2003 15:33:58 +0100 (CET) writes:

    jean> Full_Name: jean coursol Version: 1.7.1, 1.8.0 OS:
    jean> linux Submission from: (NULL) (129.175.52.7)


    jean> w <- pwilcox(1000,50,50) allocates the whole memory
    jean> and freezes the system or qwilcox or dwilcox

    jean> To fix the problem: in wilcox.c, call wilcox_free()
    jean> before return in the three functions dwilcox, qwilcox,
    jean> pwilcox.

That can hardly be the general idea!
Note that the R functions  [dpq]wilcox() are  **vectorized**,
and the whole purpose of the code is to only compute the tables
once per R call -- which is often many calls to the
corresponding C functions.


[Rd] dwilcox , pwilcox, qwilcox are not freeing memory (PR#5314)
maechler@stat.math.ethz.ch