diff --git a/userspace/libsinsp/plugin.cpp b/userspace/libsinsp/plugin.cpp index 44784d5675..acd64a2af1 100755 --- a/userspace/libsinsp/plugin.cpp +++ b/userspace/libsinsp/plugin.cpp @@ -68,7 +68,7 @@ std::shared_ptr sinsp_plugin::create( errstr.append(msg_buf, strlen(msg_buf)); LocalFree(msg_buf); } - return ret; + return nullptr; } #else sinsp_plugin_handle handle = dlopen(filepath.c_str(), RTLD_LAZY);