]> git.puffer.fish Git - matthieu/frr.git/commit
lib: fix bookkeeping for libreadline malloc()s
authorLou Berger <lberger@labn.net>
Tue, 12 Jan 2016 18:41:46 +0000 (13:41 -0500)
committervivek <vivek@cumulusnetworks.com>
Mon, 6 Jun 2016 21:34:42 +0000 (14:34 -0700)
commitcde9f1011728e6b4f141fa7d5d4656cfa6d46293
tree02f946af708809a8632f4cd5941c03806132bbf8
parentf5bb8cfa5bd7667616bc0de6dbabfa23355f05bf
lib: fix bookkeeping for libreadline malloc()s

When libreadline is used, we mistakenly mix in strdup() done in
libreadline with Quagga's lib/memory bookkeeping/counting, leading to
counter underflows on MTYPE_TMP.

Signed-off-by: Lou Berger <lberger@labn.net>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 672900382d47137638086bd8351b2678f589a546)

Conflicts:
lib/command.c
lib/command.c
lib/command.h
lib/vty.c