kmodloader: fix bad realloc usage
authorRosen Penev <rosenp@gmail.com>
Mon, 18 Jul 2022 22:12:37 +0000 (15:12 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 13 Aug 2022 16:51:02 +0000 (18:51 +0200)
commitfa6cb9a3810f5e609e2f11cd8e0a474f58a990c5
treed640e7e9cd26eef8f257f822d25ac7569603d00f
parent46a33b8be298e1e700e56f05b5ba4f06daf83efa
kmodloader: fix bad realloc usage

Both cppcheck and gcc's -fanalyzer complain here that realloc is being
used improperly.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
kmodloader.c