zigorou/Redis-hiredis — comment on commit 2492e4a7db10ab463c3b3133c2a9f965495c9aee
File:  line 0
By zigorou:

Thanks for your review. The benefit of using New() family and Safefree() macro is compatibility to any memory allocation implementation of perl .

[Memory-Allocation - perlguts](http://perldoc.perl.org/perlguts.html#Memory-Allocation) say:

> All memory meant to be used with the Perl API functions should be manipulated using the macros described in this section. The macros provide the necessary transparency between differences in the actual malloc implementation that is used within perl.
>
> It is suggested that you enable the version of malloc that is distributed with Perl. It keeps pools of various sizes of unallocated memory in order to satisfy allocation requests more quickly. However, on some platforms, it may cause spurious malloc or free errors.

But I already confirmed original code hasn't memory leak, and I'm not sure to write XS code. You might to do what you think for this changes.