Not the whole was traversed in the function to free all buffers. BZ #10203 (cherry picked from commit 233a182b)