4 ms·
In "Example 4", I don't understand where the "arg2" in `free(arg2)` is coming from?
by Karellen 3y ago
In "Example 4", I don't understand where the "arg2" in `free(arg2)` is coming from?
- dividuum 3y agoI assume it meant to be arg1 to showcase that the malloc for arg1 can be free'd without resulting in a use-after-free after having copied the value out of argv[1] within the coroutine.