mirror of git://git.sysmocom.de/ofono
sms: Don't leak memory, even in bizarre conditions
This commit is contained in:
parent
7a7c0717f5
commit
7dcae49cc5
|
@ -643,8 +643,7 @@ static void sms_tx_queue_remove_entry(struct ofono_sms *sms, GList *entry_list)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ofono_error("Unexpected sms state %d", sms->tx_state);
|
ofono_error("Unexpected sms state %d", sms->tx_state);
|
||||||
|
goto done;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__ofono_history_sms_send_status(modem, &entry->uuid,
|
__ofono_history_sms_send_status(modem, &entry->uuid,
|
||||||
|
@ -668,6 +667,7 @@ static void sms_tx_queue_remove_entry(struct ofono_sms *sms, GList *entry_list)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
done:
|
||||||
tx_queue_entry_destroy(entry);
|
tx_queue_entry_destroy(entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue