[rilmodem] Nw selection mem leak fix

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