malloc: fix duplicate mem event notification