diff options
| author | rgirada <rgirada@vmware.com> | 2020-03-07 17:22:52 -0800 |
|---|---|---|
| committer | rgirada <rgirada@vmware.com> | 2020-03-07 17:22:52 -0800 |
| commit | a4155a1b355b5ff93aadab8743f6ff8cf061be90 (patch) | |
| tree | 0eabf52db24c11fc5dfabfe3a79343cdd500adb1 /staticd/static_main.c | |
| parent | 43086da665afede14908a231f7e242632db19e9a (diff) | |
staticd: Fixing memory leak issue
Memory allotted for staticd specific vrf structers is not
being deallocated when the corresponding vrf is destroyed.
Signed-off-by: Rajesh Girada <rgirada@vmware.com>
Diffstat (limited to 'staticd/static_main.c')
| -rw-r--r-- | staticd/static_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/staticd/static_main.c b/staticd/static_main.c index 43cb7db51d..3aa8a8db3e 100644 --- a/staticd/static_main.c +++ b/staticd/static_main.c @@ -73,6 +73,8 @@ static void sigint(void) { zlog_notice("Terminating on signal"); + static_vrf_terminate(); + exit(0); } |
