mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 10:20:11 +01:00
dispatcher: drop a useless condition
The request->scripts are allocated in handle_action() and request_free() is only called after that, so it never sees it NULL. Coverity knows: CID 59385 (#1 of 1): Dereference before null check (REVERSE_INULL) check_after_deref: Null-checking request->scripts suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
This commit is contained in:
parent
e8927c14ec
commit
76cb1d4b72
1 changed files with 1 additions and 2 deletions
|
|
@ -206,8 +206,7 @@ request_free (Request *request)
|
|||
g_free (request->action);
|
||||
g_free (request->iface);
|
||||
g_strfreev (request->envp);
|
||||
if (request->scripts)
|
||||
g_ptr_array_free (request->scripts, TRUE);
|
||||
g_ptr_array_free (request->scripts, TRUE);
|
||||
|
||||
g_slice_free (Request, request);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue