-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: falkTX <falktx@falktx.com>
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
From 8187a8456c14eeb3af08c86ffa1228823c9ef1c5 Mon Sep 17 00:00:00 2001 | ||
From: Guido Aulisi <guido.aulisi@gmail.com> | ||
Date: Sun, 25 Jun 2023 15:58:30 +0200 | ||
Subject: [PATCH] Fix use-after-free warning in server.c | ||
|
||
That assignment is not necessary before returning | ||
--- | ||
src/server.c | 1 - | ||
1 file changed, 1 deletion(-) | ||
|
||
diff --git a/src/server.c b/src/server.c | ||
index ba02d8e..35c9ba5 100644 | ||
--- a/src/server.c | ||
+++ b/src/server.c | ||
@@ -2289,7 +2289,6 @@ int lo_server_del_lo_method(lo_server s, lo_method m) | ||
free((void *) it->path); | ||
free((void *) it->typespec); | ||
free(it); | ||
- it = prev; | ||
return 0; | ||
} | ||
prev = it; |