diff options
author | Denis Kenzior <denkenz@gmail.com> | 2013-03-26 10:18:57 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2013-03-26 10:21:14 -0500 |
commit | d8a9bf776b83309b8c934d7cee5480c26181feaf (patch) | |
tree | 5d83c4f533bebfdfae4af158d2e220ef88fd537f /plugins | |
parent | c65a79f5375002f5a0d25bffa2ec4cc6f98bedbc (diff) | |
download | ofono-d8a9bf776b83309b8c934d7cee5480c26181feaf.tar.bz2 |
sim900: Fix leak of options hash table
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sim900.c | 2 |
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; |