[Rd] dwilcox , pwilcox, qwilcox are not freeing memory (PR#5314)

maechler at stat.math.ethz.ch maechler at stat.math.ethz.ch
Tue Nov 25 16:13:14 MET 2003


>>>>> "jean" == jean coursol <jean.coursol at 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.



More information about the R-devel mailing list