Allgemein sind malloc und konsorten auf nem 8-Bit Mikrocontroller eher fehl am Platz. Erst recht wenn man nicht weiss was man tut