[rilmodem] Mem leak fixes to sms sending and receiving

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