forked from Archive/PX4-Autopilot
fix logger: use free() instead of 'delete[]' for _buffer
The allocation got changed to px4_cache_aligned_alloc
This commit is contained in:
parent
05a2d4d5a9
commit
e77b4418a5
|
@ -401,7 +401,7 @@ LogWriterFile::LogFileBuffer::~LogFileBuffer()
|
|||
close(_fd);
|
||||
}
|
||||
|
||||
delete[] _buffer;
|
||||
free(_buffer);
|
||||
|
||||
perf_free(_perf_write);
|
||||
perf_free(_perf_fsync);
|
||||
|
|
Loading…
Reference in New Issue