Hi, hackers! I find the palloc0() is similar to the palloc(), we can use palloc() inside palloc0() to allocate space, thereby I think we can reduce duplication of code.
Best regards! -- Japin Li
0001-Optimize-memory-allocation-code.patch
Description: 0001-Optimize-memory-allocation-code.patch