mirror of
https://github.com/irssi/irssi.git
synced 2026-08-22 10:02:22 +02:00
Null check rec on process_destroy
This may be a possible code path from handle_exec, if so then we might dereference null.
This commit is contained in:
parent
c890ecafa0
commit
25869b260b
1 changed files with 2 additions and 0 deletions
|
|
@ -175,6 +175,8 @@ static PROCESS_REC *process_find(const char *name, int verbose)
|
|||
|
||||
static void process_destroy(PROCESS_REC *rec, int status)
|
||||
{
|
||||
if (rec == NULL) return;
|
||||
|
||||
processes = g_slist_remove(processes, rec);
|
||||
|
||||
signal_emit("exec remove", 2, rec, GINT_TO_POINTER(status));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue