Skip to content

Commit

Permalink
Update posix.c
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Aug 8, 2024
1 parent ddaee3f commit 0b1bff2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/cfg/posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,15 @@ void memleak_getaddrinfo_if() // #12506
}
}

void memleak_getaddrinfo_if2() // #12996
{
struct addrinfo *addrs = NULL;
if (getaddrinfo("a", "b", NULL, &addrs)) {
return -1;
}
freeaddrinfo(addrs);
}

void memleak_mmap(int fd)
{
// cppcheck-suppress [unusedAllocatedMemory, unreadVariable, constVariablePointer]
Expand Down

0 comments on commit 0b1bff2

Please sign in to comment.