Use mmt_free() instead of free()

This commit is contained in:
Stefan Rueger
2024-04-21 14:28:38 +01:00
parent 0f7c6a1d46
commit b9801e8d66

View File

@@ -564,7 +564,7 @@ static int stk500v2_jtagmkII_recv(const PROGRAMMER *pgm, unsigned char *msg,
return -1;
}
memcpy(msg, jtagmsg + 1, rv - 1);
free(jtagmsg); // Sic! jtagmsg was malloc'd
mmt_free(jtagmsg);
return rv;
}