Skip to content

Commit

Permalink
fix(userspace/falco/app_actions/print_version.cpp): ensure destructor…
Browse files Browse the repository at this point in the history
… gets invoked


Signed-off-by: Leonardo Grasso <me@leonardograsso.com>

Co-authored-by: Jason Dellaluce <jasondellaluce@gmail.com>
  • Loading branch information
leogr and jasondellaluce committed Jun 23, 2022
1 parent 09fd8c4 commit fce934b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/falco/app_actions/print_version.cpp
Expand Up @@ -23,7 +23,7 @@ application::run_result application::print_version()
{
if(m_options.print_version_info)
{
auto s = new sinsp();
std::unique_ptr<sinsp> s(new sinsp());
printf("Falco version: %s\n", FALCO_VERSION);
printf("Libs version: %s\n", FALCOSECURITY_LIBS_VERSION);
printf("Plugin API: %s\n", s->get_plugin_api_version());
Expand Down

0 comments on commit fce934b

Please sign in to comment.