When backend_init returns NULL, we goto out_signals, which wants to free(modules), but in this particular code path, modules hasn't been initialised leading to a "Double-free or corruption" error message. Initialising modules to NULL makes the free a no-op in this scenario. Signed-off-by: Ondřej Majerech <majerech.o@gmail.com> Reviewed-by: Ryo Munakata <ryomnktml@gmail.com>dev
parent
5e3b693a11
commit
03db71caea
Loading…
Reference in new issue