[rilmodem] Mem leak fixes to sms sending and receiving

Signed-off-by: Tommi Kenakkala <tommi.kenakkala@oss.tieto.com>
Merge pull request #246 from tkenakka/leaksms

[rilmodem] Mem leak fixes to sms sending and receiving