diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2020-10-22 20:53:07 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2020-10-23 11:28:12 -0400 | 
| commit | 0e7d7358eb9609a87356bbea13e60fc879f02409 (patch) | |
| tree | 13ed6ffacb5f13bf6e3d5b64ffc0cf75f38b66ff /pbrd/pbr_main.c | |
| parent | 1e4fa7f46cc1c2d1fcb5c427c2d284bd1110a406 (diff) | |
pbrd: Fix memory leak
On shutdown pbr was leaking the ifp->info ( struct pbr_interface *)
pointer.
Add some code to notice we are being shutdown and cleanup the memory
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pbrd/pbr_main.c')
| -rw-r--r-- | pbrd/pbr_main.c | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/pbrd/pbr_main.c b/pbrd/pbr_main.c index 9a9edd79c6..01c52f24e5 100644 --- a/pbrd/pbr_main.c +++ b/pbrd/pbr_main.c @@ -82,6 +82,8 @@ static void sigint(void)  {  	zlog_notice("Terminating on signal"); +	pbr_vrf_terminate(); +  	frr_fini();  	exit(0);  | 
