Fix crash in isimodem call forwarding.

This commit is contained in:
Pekka Pessi 2011-01-17 19:05:16 +02:00 committed by Marcel Holtmann
parent 2b8a358601
commit 37ae4832de
1 changed files with 8 additions and 5 deletions

View File

@ -143,6 +143,14 @@ static gboolean decode_gsm_forwarding_info(GIsiSubBlockIter *parent,
info->numlen * 2,
2 + len))
return FALSE;
if (number)
*number = tag;
else
g_free(tag);
} else {
if (number)
*number = g_strdup("");
}
if (status)
@ -154,11 +162,6 @@ static gboolean decode_gsm_forwarding_info(GIsiSubBlockIter *parent,
if (noreply)
*noreply = info->noreply;
if (number)
*number = tag;
else
g_free(tag);
return TRUE;
}
return FALSE;