lib: fix leak on realloc() failure If realloc in the getcommandline failed then the previous partial command line would leak. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>