]> git.puffer.fish Git - mirror/frr.git/commit
staticd: Memory leak of string in staticd 14474/head
authorDonald Sharp <sharpd@nvidia.com>
Fri, 22 Sep 2023 17:13:38 +0000 (13:13 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 4 Oct 2023 18:11:49 +0000 (14:11 -0400)
commit7d86229ca6e8f35b605c004c284e4b00c17639f6
tree5a866e7cab0ca1b7b7a99f0688fe266670cb9c37
parenta079aae947947654e9d5762b291052d363f27568
staticd: Memory leak of string in staticd

XSTRDUP and then calling strsep mangles the
pointer returned by XSTRDUP.  Keep a copy
of the orig and when we are done, free that instead.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
staticd/static_vty.c