copied from https://fedorahosted.org/389/ticket/48104
There are many places in the code where functions like PR_NEWZAP, PR_DELETE, or other memory functions are used. We should use ns_malloc, etc. instead.
commit f4b7f8c5a7a0306c73977330ed87f017f9f773da