diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2025-04-11 19:54:03 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-11 19:54:03 -0400 | 
| commit | bd8ee74b49424e0e137d13d62e989892004ce027 (patch) | |
| tree | 36f8261fcbcbabc7e8fd82cf88d2be76122f3eed /zebra/zapi_msg.c | |
| parent | 85bb2155db804b34d3dee4d7dd17461f9435eb41 (diff) | |
| parent | 55ea74d6304a8d5dc68ac39b1198f150fe00aa9c (diff) | |
Merge pull request #18645 from louis-6wind/fix-zebra-pbr-leak
zebra: fix pbr_iptable memory leak
Diffstat (limited to 'zebra/zapi_msg.c')
| -rw-r--r-- | zebra/zapi_msg.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c index d4e65eb18c..fc78f87eb1 100644 --- a/zebra/zapi_msg.c +++ b/zebra/zapi_msg.c @@ -3872,12 +3872,13 @@ static inline void zebra_neigh_ip_del(ZAPI_HANDLER_ARGS)  static inline void zread_iptable(ZAPI_HANDLER_ARGS)  {  	struct zebra_pbr_iptable *zpi = -		XCALLOC(MTYPE_PBR_OBJ, sizeof(struct zebra_pbr_iptable)); +		XCALLOC(MTYPE_PBR_IPTABLE, sizeof(struct zebra_pbr_iptable));  	struct stream *s;  	s = msg;  	zpi->interface_name_list = list_new(); +	zpi->interface_name_list->del = zebra_pbr_iptable_interface_name_list_free;  	zpi->sock = client->sock;  	zpi->vrf_id = zvrf->vrf->vrf_id;  	STREAM_GETL(s, zpi->unique);  | 
