Commit 03ef1549 authored by Samuel Debionne's avatar Samuel Debionne

Fix buffer realloc when new_size > size

parent 066c6f9e
Pipeline #9989 passed with stages
in 9 minutes and 33 seconds
......@@ -127,7 +127,7 @@ void SoftBufferAllocMgr::allocBuffers(int nb_buffers,
if (to_alloc > 0) {
bl.resize(nb_buffers);
DEB_TRACE() << "Allocating " << to_alloc << " buffers";
for (int i = 0; i < nb_buffers; i++) {
for (int i = curr_nb_buffers; i < nb_buffers; i++) {
#ifdef LIMA_USE_NUMA
if (m_cpu_mask)
bl[i].setCPUAffinityMask(m_cpu_mask);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment