Mercurial > hg > freeDiameter
changeset 1205:165569e8cba8
Allow NULL parameter in fd_msg_free
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Fri, 14 Jun 2013 17:29:17 +0800 |
parents | a4cdde705f30 |
children | ef7c5e39badf |
files | libfdproto/messages.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libfdproto/messages.c Fri Jun 14 12:22:20 2013 +0800 +++ b/libfdproto/messages.c Fri Jun 14 17:29:17 2013 +0800 @@ -706,6 +706,9 @@ { TRACE_ENTRY("%p", object); + if (object == NULL) + return 0; + if (CHECK_MSG(object)) { if (_M(object)->msg_query) { _M(_M(object)->msg_query)->msg_associated = 0;