mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 14:29:47 +00:00
prefix.c: replace free with XFREE for memory allocated with XMALLOC
Signed-off-by: Lou Berger <lberger@labn.net>
This commit is contained in:
parent
e3edd1d1d4
commit
21ab852483
@ -665,7 +665,7 @@ str2prefix_ipv6 (const char *str, struct prefix_ipv6 *p)
|
||||
strncpy (cp, str, pnt - str);
|
||||
*(cp + (pnt - str)) = '\0';
|
||||
ret = inet_pton (AF_INET6, cp, &p->prefix);
|
||||
free (cp);
|
||||
XFREE (MTYPE_TMP, cp);
|
||||
if (ret == 0)
|
||||
return 0;
|
||||
plen = (u_char) atoi (++pnt);
|
||||
|
Loading…
Reference in New Issue
Block a user