[PATCH v4 2/8] common: Tidy up how malloc() is inited