[Linux-ha-dev] Score one for BEAM...
Alan Robertson
alanr at unix.sh
Wed Sep 15 00:41:25 MDT 2004
linux-ha-cvs at lists.community.tummy.com wrote:
> linux-ha CVS committal
>
> Author : alan
> Host : 24.221.212.80
> Project : linux-ha
> Module : lib
>
> Dir : linux-ha/lib/clplumbing
>
>
> Modified Files:
> Tag: STABLE_1_2
> cl_msg.c
>
>
> Log Message:
> BEAM FIX: BEAM caught an subtle and extremely difficult to find bug.
> It noticed that in some branches a void* was from ha_malloc, and in other
> cases it was from ha_msg_new(), and that when I was freeing it, I could
> sometimes free the ha_msg with ha_malloc(). I fixed the code, and now
> it is quite happy. AWESOME! I'm impressed.
More precisely, it would free the ha_msg with ha_free intread of ha_msg_del
like it should have. It carries enough information around about variable
values and states as you go through the various paths that it can tell when
I'm doing it wrong - at least in this case where I fail while constructing it.
--
Alan Robertson <alanr at unix.sh>
"Openness is the foundation and preservative of friendship... Let me claim
from you at all times your undisguised opinions." - William Wilberforce
More information about the Linux-HA-Dev
mailing list