projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Double free crash
[asterisk/asterisk.git]
/
funcs
/
func_odbc.c
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";