cli: fix realloc issue spotted by cppcheck
authorPetr Štetiar <ynezz@true.cz>
Mon, 4 Nov 2019 18:46:13 +0000 (19:46 +0100)
committerPetr Štetiar <ynezz@true.cz>
Thu, 14 Nov 2019 16:11:34 +0000 (17:11 +0100)
commitf5dd5217d6277739b6208771b45787cddd323576
tree6cee1383f36fbdb3ad79f36f347b07c58d73b233
parentaf59f86a0db914db60243563956f20e2c0850213
cli: fix realloc issue spotted by cppcheck

Cppcheck 1.90 dev reports following:

 cli.c:117:4: error: Common realloc mistake: 'typestr' nulled but not freed upon failure [memleakOnRealloc]
    typestr = realloc(typestr, maxlen);
    ^

Signed-off-by: Petr Štetiar <ynezz@true.cz>
cli.c