mirror of git://git.sysmocom.de/ofono
sim900: Fix leak of options hash table
This commit is contained in:
parent
c65a79f537
commit
d8a9bf776b
|
@ -116,6 +116,8 @@ static GAtChat *open_device(struct ofono_modem *modem,
|
|||
g_hash_table_insert(options, "RtsCts", "off");
|
||||
|
||||
channel = g_at_tty_open(device, options);
|
||||
g_hash_table_destroy(options);
|
||||
|
||||
if (channel == NULL)
|
||||
return NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue