From ac42dd07dc0111b859439c62f5a0be7a01957847 Mon Sep 17 00:00:00 2001 From: flamingcow Date: Fri, 10 May 2019 20:48:17 -0700 Subject: [PATCH] Free glog and gflags before quit, to make leak detection easier --- example_simple.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/example_simple.cc b/example_simple.cc index 9a441c8..162f3c9 100644 --- a/example_simple.cc +++ b/example_simple.cc @@ -17,4 +17,7 @@ int main(int argc, char *argv[]) { }, FLAGS_threads); server.RegisterSignalHandlers(); server.Serve(); + + gflags::ShutDownCommandLineFlags(); + google::ShutdownGoogleLogging(); }