LSP MD4 memory allocation code