[RILMODEM] free before calling g_strdup to avoid mem leak

Signed-off-by: Jarko Poutiainen <Jarko.Poutiainen@oss.tieto.com>