search for: tree_struct

Displaying 1 result from an estimated 1 matches for "tree_struct".

Did you mean: free_struct
2000 Sep 07
1
Calloc() & Free() in different .C(.) calls --> not usable ?
...ize* ## I'll need to store that tree in R size <- .C("fittree", data, ..., res = integer(1))$res ## Now that I know its size, I can get it into R : tree.in.R <- .C("gettree", size, res = integer(size))$res where in the C code, I have a global static *tree_struct my_tree; and in C's fittree(), I use my_tree = Calloc(1, tree_struct); for building the tree, which is then accessed by gettree(), which ends in Free(my_tree); All well, BUT: problem is that memory just builds up and is not freed at all. >From a (more private) E-mail of Prof B...