summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/sim900.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/sim900.c b/plugins/sim900.c
index 496faa6f..b55991b9 100644
--- a/plugins/sim900.c
+++ b/plugins/sim900.c
@@ -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;