[rilmodem] Minor rilmodem/sim.c mem leak fix

Signed-off-by: Tommi Kenakkala <tommi.kenakkala@oss.tieto.com>