[RILMODEM] free before calling g_strdup to avoid mem leak

Signed-off-by: Jarko Poutiainen <Jarko.Poutiainen@oss.tieto.com>
Merge pull request #257 from jpoutiai/master

[RILMODEM] free before calling g_strdup to avoid mem leak