Skip to content

Commit 708eea3

Browse files
committed
Fix minor compile error with WOLFSSL_DEBUG_MEMORY
1 parent 0fa6755 commit 708eea3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfcrypt/src/memory.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ void wolfSSL_Free(void *ptr, void* heap, int type)
11911191
#ifdef WOLFSSL_HEAP_TEST
11921192
if (heap == (void*)WOLFSSL_HEAP_TEST) {
11931193
#ifdef WOLFSSL_DEBUG_MEMORY
1194-
fprintf(stderr, "[HEAP %p] Free: %p at %s:%u\n", heap, pt, func,
1194+
fprintf(stderr, "[HEAP %p] Free: %p at %s:%u\n", heap, ptr, func,
11951195
line);
11961196
#endif
11971197
return free(ptr); /* native heap */
@@ -1211,7 +1211,7 @@ void wolfSSL_Free(void *ptr, void* heap, int type)
12111211
#endif
12121212
#ifndef WOLFSSL_NO_MALLOC
12131213
#ifdef WOLFSSL_DEBUG_MEMORY
1214-
fprintf(stderr, "[HEAP %p] Free: %p at %s:%u\n", heap, pt, func,
1214+
fprintf(stderr, "[HEAP %p] Free: %p at %s:%u\n", heap, ptr, func,
12151215
line);
12161216
#endif
12171217
#ifdef FREERTOS

0 commit comments

Comments
 (0)