mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-08 20:43:51 +00:00
[apr] scan-build: fix dereference of null pointer in apr_hash_merge() and apr_proc_other_child_unregister()
This commit is contained in:
1 parent
d3c4cf3d62
commit
e39eb28629
2 files changed
+2
-2
No files matched your search
@@ -96,7 +96,7 @@ APR_DECLARE(void) apr_proc_other_child_unregister(void *data)
|
||||
}
|
||||
|
||||
/* segfault if this function called with invalid parm */
|
||||
apr_pool_cleanup_kill(cur->p, cur->data, other_child_cleanup);
|
||||
if (cur) apr_pool_cleanup_kill(cur->p, cur->data, other_child_cleanup);
|
||||
other_child_cleanup(data);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user