[Upstream] libsubcmd: Fix use-after-free for realloc(..., 0)
Created by: saeziae
GCC 12 correctly reports a potential use-after-free condition in the xrealloc helper.
Created by: saeziae
GCC 12 correctly reports a potential use-after-free condition in the xrealloc helper.