From 167e9a9e486eb0dc078877f9fc71ef9eb0a589da Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Mon, 22 Apr 2024 15:47:51 +0100 Subject: [PATCH] Render double teardown() harmless in butterfly --- src/butterfly.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/butterfly.c b/src/butterfly.c index 3f648c8a..9d453748 100644 --- a/src/butterfly.c +++ b/src/butterfly.c @@ -88,6 +88,7 @@ static void butterfly_setup(PROGRAMMER *pgm) { static void butterfly_teardown(PROGRAMMER *pgm) { mmt_free(pgm->cookie); + pgm->cookie = NULL; } static int butterfly_send(const PROGRAMMER *pgm, char *buf, size_t len) {