diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-12-05 12:10:25 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-12-05 12:10:25 -0500 | 
| commit | 4898cbaf1dee95f687cf6aa6d0490a336fb7dceb (patch) | |
| tree | 98c879d0d71ef97e1819258e6a0fcfd2d133a4c4 /ospf6d | |
| parent | 253113bcb80b7b489eb848988a90459403f870de (diff) | |
ospf6d: Stop using MTYPE_TMP in some cases
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospf6d')
| -rw-r--r-- | ospf6d/ospf6_lsa.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/ospf6d/ospf6_lsa.c b/ospf6d/ospf6_lsa.c index 2792820a54..55ac7c88a5 100644 --- a/ospf6d/ospf6_lsa.c +++ b/ospf6d/ospf6_lsa.c @@ -573,7 +573,7 @@ void ospf6_lsa_show_dump(struct vty *vty, struct ospf6_lsa *lsa,  		json = json_object_new_object();  		size_t header_str_sz = (2 * (end - start)) + 1; -		header_str = XMALLOC(MTYPE_TMP, header_str_sz); +		header_str = XMALLOC(MTYPE_OSPF6_LSA_HEADER, header_str_sz);  		inet_ntop(AF_INET, &lsa->header->id, id, sizeof(id));  		inet_ntop(AF_INET, &lsa->header->adv_router, adv_router, @@ -586,7 +586,7 @@ void ospf6_lsa_show_dump(struct vty *vty, struct ospf6_lsa *lsa,  		json_object_string_add(json, "header", header_str);  		json_object_array_add(json_array, json); -		XFREE(MTYPE_TMP, header_str); +		XFREE(MTYPE_OSPF6_LSA_HEADER, header_str);  	} else {  		vty_out(vty, "\n%s:\n", lsa->name);  | 
