correction methode mem_alloc