Re: Memory leak in scm_c_eval_string?

2005-12-19 Thread Michael J. Barillier
#x27;ed as an SCM), rather than a pointer to the cell on the heap. Since that's the case then only the pointer is overwritten and the cell containing the pointer to the malloc'ed string is still sitting in the heap and would be collected properly. Thanks - now I can sleep at night again

Memory leak in scm_c_eval_string?

2005-12-16 Thread Michael J. Barillier
t;Example." ) #define FUNC_NAME s_example { SCM tmp; int n; tmp = scm_c_eval_string("(list \"foo\" \"bar\" \"baz\")"); n = do_something_with_tmp(tmp); return SCM_MAKINUM(n); } #undef FUNC_NAME Will the list returne