projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13f15ca
)
Double free crash
author
Tilghman Lesher
<tilghman@meg.abyt.es>
Fri, 7 May 2010 20:54:35 +0000
(20:54 +0000)
committer
Tilghman Lesher
<tilghman@meg.abyt.es>
Fri, 7 May 2010 20:54:35 +0000
(20:54 +0000)
(closes issue #17245)
Reported by: thedavidfactor
Patches:
20100426__issue17245.diff.txt uploaded by tilghman (license 14)
Tested by: murraytm
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@261917
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
funcs/func_odbc.c
patch
|
blob
|
history
diff --git
a/funcs/func_odbc.c
b/funcs/func_odbc.c
index
dbb5ace
..
944fc1d
100644
(file)
--- 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";