Merge pull request #1760 from stefanrueger/dryrun

Utilise magic memory tree interface for dryrun.c
This commit is contained in:
Stefan Rueger
2024-04-25 16:31:39 +00:00
committed by GitHub

View File

@@ -535,13 +535,13 @@ static int dryrun_readonly(const PROGRAMMER *pgm, const AVRPART *p, const AVRMEM
static void dryrun_setup(PROGRAMMER *pgm) {
pmsg_debug("%s()\n", __func__);
// Allocate dry
pgm->cookie = cfg_malloc(__func__, sizeof(dryrun_t));
pgm->cookie = mmt_malloc(sizeof(dryrun_t));
}
static void dryrun_teardown(PROGRAMMER *pgm) {
pmsg_debug("%s()\n", __func__);
free(pgm->cookie);
mmt_free(pgm->cookie);
pgm->cookie = NULL;
}