From 6253a46a75442fa5bc3eafb00222d750bcfd7ddd Mon Sep 17 00:00:00 2001 From: Lou Berger Date: Wed, 8 Mar 2017 12:14:15 -0500 Subject: [PATCH] lib: handle case specifc types, protect against double free (issue #144) Signed-off-by: Lou Berger [DL: dropped changes except the two NULL assignments] Signed-off-by: David Lamparter --- lib/vty.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vty.c b/lib/vty.c index a39fe9f41b..f387e79104 100644 --- a/lib/vty.c +++ b/lib/vty.c @@ -3195,6 +3195,8 @@ vty_terminate (void) vty_reset (); vector_free (vtyvec); vector_free (Vvty_serv_thread); + vtyvec = NULL; + Vvty_serv_thread = NULL; } } -- 2.39.5