Skip to content
Snippets Groups Projects
Commit 4179ed6c authored by Julian Oes's avatar Julian Oes Committed by Lorenz Meier
Browse files

sdlog2: don't free the logbuffer after disarm

Only free the logbuffer if you exit sdlog2. After disarming, just reset
the pointers. This way, we don't take any risks doing malloc and free.

The actual "double free" was caused by trying to free the perf counter
inside logbuffer_free.
parent 7ce297be
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment