aboutsummaryrefslogtreecommitdiff
path: root/examples/list_people.cc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/list_people.cc')
-rw-r--r--examples/list_people.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/list_people.cc b/examples/list_people.cc
index bd9a583f..5363152e 100644
--- a/examples/list_people.cc
+++ b/examples/list_people.cc
@@ -61,5 +61,8 @@ int main(int argc, char* argv[]) {
ListPeople(address_book);
+ // Optional: Delete all global objects allocated by libprotobuf.
+ google::protobuf::ShutdownProtobufLibrary();
+
return 0;
}