merge, no memleaks, no warnings