sim900: Fix leak of options hash table

This commit is contained in:
Denis Kenzior 2013-03-26 10:18:57 -05:00
parent c65a79f537
commit d8a9bf776b
1 changed files with 2 additions and 0 deletions

View File

@ -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;