mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 19:39:28 +00:00
lib: call protobuf clean up on exit
Let's clean up the valgrind output even more by calling the protobuf shutdown function that deallocates all library used memory. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
parent
e00241ad9f
commit
79c681952e
@ -1400,6 +1400,11 @@ static int frr_grpc_finish(void)
|
||||
grpc_debug("%s: joining and destroy grpc thread", __func__);
|
||||
pthread_join(fpt->thread, NULL);
|
||||
frr_pthread_destroy(fpt);
|
||||
|
||||
// Fix protobuf 'memory leaks' during shutdown.
|
||||
// https://groups.google.com/g/protobuf/c/4y_EmQiCGgs
|
||||
google::protobuf::ShutdownProtobufLibrary();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user