rst: Fix helpers memory allocation
rst: Fix helpers memory allocation

Calling rst_mem_alloc() in a loop with increasing size causes the
n^2 memory grow :) since _alloc is not _realloc.

Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>

tych0/criu,marcosnils/criu,tych0/criu,gablg1/criu,svloyso/criu,KKoukiou/criu-remote,eabatalov/criu,AuthenticEshkinKot/criu,eabatalov/criu,gablg1/criu,rentzsch/criu,marcosnils/criu,efiop/criu,AuthenticEshkinKot/criu,ldu4/criu,rentzsch/criu,fbocharov/criu,gablg1/criu,gonkulator/criu,KKoukiou/criu-remote,ldu4/criu,KKoukiou/criu-remote,eabatalov/criu,eabatalov/criu,KKoukiou/criu-remote,svloyso/criu,AuthenticEshkinKot/criu,rentzsch/criu,fbocharov/criu,marcosnils/criu,marcosnils/criu,ldu4/criu,wtf42/criu,LK4D4/criu,svloyso/criu,gonkulator/criu,gonkulator/criu,wtf42/criu,marcosnils/criu,fbocharov/criu,AuthenticEshkinKot/criu,efiop/criu,KKoukiou/criu-remote,ldu4/criu,svloyso/criu,svloyso/criu,LK4D4/criu,gablg1/criu,rentzsch/criu,efiop/criu,LK4D4/criu,efiop/criu,ldu4/criu,gonkulator/criu,gonkulator/criu,rentzsch/criu,tych0/criu,wtf42/criu,wtf42/criu,tych0/criu,efiop/criu,ldu4/criu,gablg1/criu,eabatalov/criu,svloyso/criu,gablg1/criu,AuthenticEshkinKot/criu,tych0/criu,LK4D4/criu,eabatalov/criu,fbocharov/criu,marcosnils/criu,AuthenticEshkinKot/criu,wtf42/criu,fbocharov/criu,KKoukiou/criu-remote,wtf42/criu,LK4D4/criu,fbocharov/criu,LK4D4/criu,tych0/criu,efiop/criu,rentzsch/criu,gonkulator/criu