diff options
Diffstat (limited to 'net/zebra/files/patch-001_vty_memory_leak')
| -rw-r--r-- | net/zebra/files/patch-001_vty_memory_leak | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/net/zebra/files/patch-001_vty_memory_leak b/net/zebra/files/patch-001_vty_memory_leak deleted file mode 100644 index c857fedf984f..000000000000 --- a/net/zebra/files/patch-001_vty_memory_leak +++ /dev/null @@ -1,18 +0,0 @@ ---- lib/vty.c.orig Tue Sep 26 23:03:12 2000 -+++ lib/vty.c Tue Dec 26 23:18:00 2000 -@@ -1850,10 +1849,13 @@ - printf ("line: %s\n", buf); - #endif /* VTYSH_DEBUG */ - -+ vty_ensure (vty, nbytes); -+ memcpy (vty->buf, buf, nbytes); -+ - /* Pass this line to parser. */ -- vty->buf = buf; - ret = vty_execute (vty); -- vty->buf = NULL; -+ -+ vty_clear_buf (vty); - - /* Return result. */ - #ifdef VTYSH_DEBUG |
