Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
b
leaks memoryI guess when you don't allocate enough memory then you write over something else.
I guess when that happens the effect is unpredictable, depending what you wrote over.
If you are lucky then the test passes anyway.
maybe you're a Chinese? you can tell me in Chinese```
I think maybe you're right.
But would you tell me why my code can pass the test?
```I don't know why``In addition I try to delete the "sizeof(char)" only "malloc(2)"remaining, it can also pass through the test.
Maybe the (2) means the compiler allocate 2 address in which each can contain a string?
would you please tell me?
Shouldn't that
sizeof(char)
in last malloc besizeof(char*)