Closed nrathaus closed 1 year ago
The following code can be seen inside itob: char* result = (char*) malloc(sizeof(char) * size);
char* result = (char*) malloc(sizeof(char) * size);
This result buffer is never freed in any subsequent calls and thus repeated calling of itob would cause a memory leak of 4 bytes
The following code can be seen inside itob:
char* result = (char*) malloc(sizeof(char) * size);
This result buffer is never freed in any subsequent calls and thus repeated calling of itob would cause a memory leak of 4 bytes