Attached a new patch with these changes.

On Mon, 4 Dec 2023 at 12:15, Jonathan Wakely <jwak...@redhat.com> wrote:

> On Sat, 2 Dec 2023 at 21:24, Costas Argyris wrote:
> >
> > Use std::vector instead of malloc'd pointer
> > to get automatic freeing of memory.
>
> You can't include <vector> there. Instead you need to define
> INCLUDE_VECTOR before "system.h"
>
> Shouldn't you be using resize, not reserve? Otherwise mdswitches[i] is
> undefined.
>
>

Attachment: 0001-driver-Fix-memory-leak.patch
Description: Binary data

Reply via email to