Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Common] Fix use-after-free in LISTP_FOR_EACH_ENTRY_SAFE
If we iterate over the list, deleting all elements, after the last iteration TMP is going to point to an already-freed element. Because of that, we're not allowed to dereference it after the last iteration. Signed-off-by: Paweł Marczewski <pawel@invisiblethingslab.com>
- Loading branch information