[PATCH 5.4 45/80] libsubcmd: Fix use-after-free for realloc(..., 0)