From: Russell Bryant Date: Thu, 25 Nov 2004 06:14:50 +0000 (+0000) Subject: fix mem leak (bug #2940) X-Git-Tag: 1.0.11.1~370 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28109dedf5c78cfbf3ac6c037bf45308dc1e604d;p=thirdparty%2Fasterisk.git fix mem leak (bug #2940) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4334 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/cdr/cdr_odbc.c b/cdr/cdr_odbc.c index 3fb4b2c147..c28a329c9f 100755 --- a/cdr/cdr_odbc.c +++ b/cdr/cdr_odbc.c @@ -161,6 +161,7 @@ static int odbc_log(struct ast_cdr *cdr) if (option_verbose > 10) ast_verbose( VERBOSE_PREFIX_4 "cdr_odbc: Query FAILED Call not logged!\n"); } + SQLFreeHandle(SQL_HANDLE_STMT, ODBC_stmt); ast_mutex_unlock(&odbc_lock); return 0; }