[rilmodem] Minor mem leak fix

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