diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-01-06 06:28:18 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-01-06 06:28:18 +0000 |
commit | 5fccd1c61ce6376e2f0205cbf590f6852e8edeb5 (patch) | |
tree | d47a3844c480a0be17d38434e79562a07a07512a /addons | |
parent | ff28d59a54b62a2b70c9d3dd526a413fd500ef73 (diff) |
Don't destroy handle not created by use (because the caller will).
(closes issue #18526)
Reported by: makoto
Patches:
res-config-mysql-include.patch uploaded by makoto (license 38)
Tested by: makoto
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@300798 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'addons')
-rw-r--r-- | addons/res_config_mysql.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/res_config_mysql.c b/addons/res_config_mysql.c index 93a743245..217664709 100644 --- a/addons/res_config_mysql.c +++ b/addons/res_config_mysql.c @@ -978,7 +978,6 @@ static struct ast_config *config_mysql(const char *database, const char *table, if (!ast_config_internal_load(row[2], cfg, config_flags, "", who_asked)) { mysql_free_result(result); release_database(dbh); - ast_config_destroy(cfg); return NULL; } continue; |