Skip to content

Commit

Permalink
Call ShutdownProtobufLibrary in C++ builds, for valgrind runs
Browse files Browse the repository at this point in the history
  • Loading branch information
msepga committed Dec 21, 2023
1 parent bb29f63 commit 74f3d95
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pg_query_outfuncs_protobuf_cpp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,11 @@ pg_query_nodes_to_json(const void *obj)

return pstrdup(output.c_str());
}

class Cleanup
{
public:
~Cleanup() { google::protobuf::ShutdownProtobufLibrary(); }
};

Cleanup cleanup;

0 comments on commit 74f3d95

Please sign in to comment.