Skip to content

Commit dfe32e5

Browse files
author
Curtis Johnson
committed
Pushing fix to oscillateRecon.cpp
1 parent 15702e9 commit dfe32e5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

PowerGrid/lowRank/oscillateRecon.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,12 @@ int main(int argc, char **argv)
270270
ImageTemp = vectorise(imgB * vLR);
271271

272272
writeNiftiMagPhsImage<float>(filename, ImageTemp, Nx, Ny, Nz, NRepMax);
273-
273+
274+
for(uword rep = 0; rep < NRepMax; rep++){
275+
delete A_list[rep];
276+
}
277+
delete[] A_list;
278+
A_list = NULL;
274279
}
275280
}
276281
}

0 commit comments

Comments
 (0)