Skip to content

Commit

Permalink
FIX WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeclerck committed Sep 16, 2024
1 parent 93543a9 commit 125245d
Show file tree
Hide file tree
Showing 2 changed files with 441 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cobc/cobc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ cobc_parse_realloc (void *prevptr, const size_t size)

return m->memptr;
}

#include "../print.h"
void
cobc_parse_free (void *prevptr)
{
Expand All @@ -1162,8 +1162,9 @@ cobc_parse_free (void *prevptr)
/* LCOV_EXCL_START */
if (!curr) {
#ifdef COB_TREE_DEBUG
cobc_err_msg (_("call to %s with invalid pointer, as it is missing in list"),
"cobc_parse_free");
cobc_err_msg (_("call to %s with invalid pointer %p, as it is missing in list"),
"cobc_parse_free", prevptr);
print_trace();
cobc_abort_terminate (1);
#else
return;
Expand Down
Loading

0 comments on commit 125245d

Please sign in to comment.