diff --git a/ut_assert/src/uttools.c b/ut_assert/src/uttools.c index 4e8dc2829..efe13b64e 100644 --- a/ut_assert/src/uttools.c +++ b/ut_assert/src/uttools.c @@ -67,7 +67,7 @@ bool UtMem2BinFile(const void *Memory, const char *Filename, uint32 Length) if ((fp = fopen(Filename, "w"))) { fwrite(Memory, Length, 1, fp); - fclose(p); + fclose(fp); return (true); } }