From 88ee584b3c5a869b98a891979477a90afd62ae7a Mon Sep 17 00:00:00 2001 From: Adrian Schmidt <73660712+AdrianSchmidt1@users.noreply.github.com> Date: Fri, 22 Nov 2024 11:46:13 +0100 Subject: [PATCH] Add missing free for tape signature in freeTapeResources --- ADOL-C/src/taping.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ADOL-C/src/taping.c b/ADOL-C/src/taping.c index 7972dce2..6451952e 100644 --- a/ADOL-C/src/taping.c +++ b/ADOL-C/src/taping.c @@ -1344,6 +1344,10 @@ void freeTapeResources(TapeInfos *tapeInfos) { fclose(tapeInfos->tay_file); tapeInfos->tay_file = NULL; } + if (tapeInfos->signature != NULL) { + free(tapeInfos->signature); + tapeInfos->signature = NULL; + } } /****************************************************************************/