diff --git a/src/resolve.c b/src/resolve.c index 21b357bb..0352fc59 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -292,7 +292,7 @@ static int resolve_init(void) static void resolve_exit(void) { - if (!method.ops->exit) + if (!method.ops || !method.ops->exit) return; method.ops->exit(method.data);