Skip to content

Commit

Permalink
Merge pull request #1760 from stefanrueger/dryrun
Browse files Browse the repository at this point in the history
Utilise magic memory tree interface for dryrun.c
  • Loading branch information
stefanrueger authored Apr 25, 2024
2 parents ff7ab85 + 345e4a9 commit b1c5bac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dryrun.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b1c5bac

Please sign in to comment.