[PATCH 5.10 065/121] libsubcmd: Fix use-after-free for realloc(..., 0)