Check malloc rc (hat-tip Christopher Jones)