aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-07 20:54:35 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-07 20:54:35 +0000
commit5e4aa9cb30a8959aa8aafd38f98c2cc4da3e8a25 (patch)
tree2288ed45b7224a7d0218632cdeda0572d2ceafc9
parentdd538fa676e0a63312793f4f3ebbbad4f5b9bb07 (diff)
Double free crash
(closes issue #17245) Reported by: thedavidfactor Patches: 20100426__issue17245.diff.txt uploaded by tilghman (license 14) Tested by: murraytm git-svn-id: http://svn.digium.com/svn/asterisk/trunk@261917 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--funcs/func_odbc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c
index dbb5ace45..944fc1da2 100644
--- a/funcs/func_odbc.c
+++ b/funcs/func_odbc.c
@@ -331,6 +331,7 @@ static int acf_odbc_write(struct ast_channel *chan, const char *cmd, char *s, co
if (obj && !transactional) {
ast_odbc_release_obj(obj);
+ obj = NULL;
}
}
}
@@ -350,6 +351,8 @@ static int acf_odbc_write(struct ast_channel *chan, const char *cmd, char *s, co
SQLRowCount(stmt, &rows);
break;
}
+ ast_odbc_release_obj(obj);
+ obj = NULL;
}
} else if (stmt) {
status = "SUCCESS";