trace_recorder: fix build error with gcc 12

Fixes #4843
This commit is contained in:
Christian Prochaska 2023-04-05 12:01:53 +02:00 committed by Christian Helmuth
parent db69104f1a
commit 4dc5426a45

View File

@ -182,13 +182,13 @@ void Trace_recorder::Monitor::stop()
destroy(_alloc, &writer);
});
/* destroy buffer */
destroy(_alloc, &buf);
try {
/* detach buffer */
_trace.free(buf.subject_id());
} catch (Trace::Nonexistent_subject) { }
/* destroy buffer */
destroy(_alloc, &buf);
});
_trace_directory.destruct();