https://origsvn.digium.com/svn/asterisk/trunk
........
r268454 | tilghman | 2010-06-05 12:27:12 -0500 (Sat, 05 Jun 2010) | 5 lines
Verify event is not NULL before attempting to lower its usecount.
(closes issue #17234)
Reported by: mav3rick
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268455
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
fclose(session->f);
ast_mutex_destroy(&session->__lock);
ast_free(session);
- ast_atomic_fetchadd_int(&eqe->usecount, -1);
+ if (eqe) {
+ ast_atomic_fetchadd_int(&eqe->usecount, -1);
+ }
}
static void destroy_session(struct mansession_session *session)