On 5 May 2010 16:26, Sebastian Kuzminsky <[email protected]> wrote:
>>> hm2_tp_pwmgen_parse_md() leaks memory in the error paths.
I have
hm2->tp_pwmgen.instance = (hm2_tp_pwmgen_instance_t
*)hal_malloc(hm2->tp_pwmgen.num_instances *
sizeof(hm2_tp_pwmgen_instance_t));
But if I fail out somewhere later, there is no hal_free to tidy up.
Does kfree work in hal shared memory? That is what I had but it seems
like it might not be right.
--
atp
------------------------------------------------------------------------------
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers