Both cppcheck and gcc's -fanalyzer complain here that realloc is being
used improperly.
Signed-off-by: Rosen Penev
---
kmodloader.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/kmodloader.c b/kmodloader.c
index 63bae5e..4b2ffa7 100644
--- a/kmodloader.c
+++
On Mon, Jul 18, 2022 at 1:45 AM Jo-Philipp Wich wrote:
>
> Hi,
>
> > [...]
> > - free(aliases);
> > + if (aliases)
> > + free(aliases);
>
> This check is redundant, the free() function is guaranteed to be NULL-safe in
> the standard:
>
>The free() function shall cause the
memory leaks and missing NULL checks.
Signed-off-by: Rosen Penev
---
v2: remove null check for free
kmodloader.c | 12
1 file changed, 12 insertions(+)
diff --git a/kmodloader.c b/kmodloader.c
index 4b2ffa7..b2e7a8b 100644
--- a/kmodloader.c
+++ b/kmodloader.c
@@ -336,6 +336,11
The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.
To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.--- Begin Message ---
This adds a package with the DRR
The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.
To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.--- Begin Message ---
From: Thomas Langer
Extract the
The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.
To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.--- Begin Message ---
From: Thomas Langer
Change
The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.
To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.--- Begin Message ---
This cleans up the kmod-sched
The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.
To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.--- Begin Message ---
Add the
The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.
To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.--- Begin Message ---
From: Thomas Langer
This adds
Hi,
> [...]
> - free(aliases);
> + if (aliases)
> + free(aliases);
This check is redundant, the free() function is guaranteed to be NULL-safe in
the standard:
The free() function shall cause the space pointed to by ptr to be
deallocated; that is, made available for further
10 matches
Mail list logo