]> git.puffer.fish Git - mirror/frr.git/commit
lib: Convert stream_new to use one malloc 2886/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 22 Aug 2018 00:34:42 +0000 (20:34 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 22 Aug 2018 11:58:54 +0000 (07:58 -0400)
commitde75223eafe083d4d6c82155a6bf8b328f806634
treeba9b4be375b69547582f5508f669d0a022db6b4b
parentdb3c830afe3017eb2bc6f972e10404547c1a5d69
lib: Convert stream_new to use one malloc

Modify stream.c to have stream_new call one malloc call
instead of two.  Also change stream_resize_orig to
use stream_resize_inplace and to send an error
to the developer to switch over.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/stream.c
lib/stream.h