mirror of
git://git.suckless.org/sbase
synced 2025-01-03 05:22:16 +00:00
ed: Fix double-free
After join() is called for the first time, s.str is left pointing to a string that was just freed. Upon the second call to join(), it is freed again at the start of the function. Since the string is reset on every function call, there is no reason for it to be static, so just replace the initial free with assignment to NULL.
This commit is contained in:
parent
172cdd98c3
commit
3eb89c44aa
Loading…
Reference in New Issue
Block a user