Skip to content

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

1 message · Martin Maechler

#
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.