sirius-suite/stemmer/pthread/main.cpp: fix realloc memory leak
sirius-suite/stemmer/pthread/main.cpp: fix realloc memory leak

Fix handling of realloc. If realloc() fails it returns NULL, assigning
the return value of realloc() directly to the pointer without checking
for the result will lead to a memory leak in error case.

Use a temporary pointer to hold the result of realloc(). In error case
print error and and return -ENOMEM, otherwise assign it to the pointer
we want to realloc.

Signed-off-by: Danny Al-Gaaf <473e39ac77cf392f0dd9bacde8409de76c14d006@bisect.de>

wathek/sirius,seong889/lucida,zitterbewegung/sirius,hoangt/sirius,linearregression/sirius,seong889/lucida,ryanniehaus/lucida,hoangt/sirius,ffund/sirius,Zeioth/sirius,seong889/lucida,wathek/sirius,AlphaStaxLLC/sirius,Zeioth/sirius,madtreat/sirius,jhauswald/lucida,AlphaStaxLLC/sirius,ryanniehaus/lucida,hoehnp/sirius,zitterbewegung/sirius,kolewu/sirius,Vivek065/sirius,seong889/lucida,jhauswald/lucida,erdincay/sirius,seong889/lucida,niiashikwei/sirius,madtreat/sirius,apfritts/sirius,madtreat/sirius,apfritts/sirius,xpndlabs/sirius,erdincay/sirius,seong889/lucida,enlighter/sirius,KitoHo/sirius,ryanniehaus/lucida,jhauswald/lucida,xpndlabs/sirius,apfritts/sirius,enlighter/sirius,ffund/sirius,enlighter/sirius,ffund/sirius,yqzhang/sirius,zitterbewegung/sirius,yqzhang/sirius,niiashikwei/sirius,yunshengb/lucida,claritylab/sirius,yqzhang/sirius,enlighter/sirius,enlighter/sirius,Zeioth/sirius,claritylab/sirius,lacvapps/sirius,lacvapps/sirius,Zeioth/sirius,lacvapps/sirius,xpndlabs/sirius,erdincay/sirius,hoangt/sirius,rowhit/sirius,apfritts/sirius,jhauswald/lucida,enlighter/sirius,linearregression/sirius,yunshengb/lucida,kolewu/sirius,kolewu/sirius,claritylab/sirius,madtreat/sirius,wathek/sirius,apfritts/sirius,seong889/lucida,rowhit/sirius,Vivek065/sirius,seong889/lucida,kolewu/sirius,enlighter/sirius,hoehnp/sirius,ryanniehaus/lucida,AlphaStaxLLC/sirius,rowhit/sirius,Zeioth/sirius,KitoHo/sirius,kolewu/sirius,wathek/sirius,linearregression/sirius,claritylab/sirius,ryanniehaus/lucida,zitterbewegung/sirius,Vivek065/sirius,hoehnp/sirius,KitoHo/sirius,ffund/sirius,kolewu/sirius,yangeagle/sirius,yangeagle/sirius,yqzhang/sirius,zitterbewegung/sirius,AlphaStaxLLC/sirius,niiashikwei/sirius,niiashikwei/sirius,ffund/sirius,xpndlabs/sirius,KitoHo/sirius,wathek/sirius,kolewu/sirius,erdincay/sirius,AlphaStaxLLC/sirius,wathek/sirius,lacvapps/sirius,yangeagle/sirius,ryanniehaus/lucida,lacvapps/sirius,yqzhang/sirius,jhauswald/lucida,ryanniehaus/lucida,yunshengb/lucida,hoehnp/sirius,niiashikwei/sirius,Vivek065/sirius,KitoHo/sirius,apfritts/sirius,rowhit/sirius,madtreat/sirius,erdincay/sirius,xpndlabs/sirius,hoehnp/sirius,jhauswald/lucida,erdincay/sirius,Vivek065/sirius,zitterbewegung/sirius,KitoHo/sirius,AlphaStaxLLC/sirius,yangeagle/sirius,ffund/sirius,apfritts/sirius,hoehnp/sirius,rowhit/sirius,AlphaStaxLLC/sirius,wathek/sirius,claritylab/sirius,erdincay/sirius,yqzhang/sirius,Zeioth/sirius,lacvapps/sirius,linearregression/sirius,claritylab/sirius,hoangt/sirius,yunshengb/lucida,yunshengb/lucida,lacvapps/sirius,yunshengb/lucida,hoangt/sirius,Vivek065/sirius,hoangt/sirius,jhauswald/lucida,yangeagle/sirius,hoangt/sirius,rowhit/sirius,xpndlabs/sirius,Vivek065/sirius,xpndlabs/sirius,yunshengb/lucida,yangeagle/sirius,linearregression/sirius,zitterbewegung/sirius,yunshengb/lucida,niiashikwei/sirius,ffund/sirius,KitoHo/sirius,linearregression/sirius,yangeagle/sirius,seong889/lucida,madtreat/sirius,niiashikwei/sirius,rowhit/sirius,hoehnp/sirius,Zeioth/sirius,yqzhang/sirius,madtreat/sirius,linearregression/sirius,claritylab/sirius,jhauswald/lucida