]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_calendar: Plug memory leak and micro-optimization
authorSean Bright <sean.bright@gmail.com>
Wed, 13 Sep 2017 19:14:25 +0000 (15:14 -0400)
committerSean Bright <sean.bright@gmail.com>
Tue, 19 Sep 2017 11:10:55 +0000 (06:10 -0500)
commit855746fb75d5852eb4ee2bd4c99b2debbfa045e0
tree4ac7951246378798daa5e30faa5677ebabccfd8d
parent7ce044fb8f37c92410fa4f72af3e6ef6ff6c76dc
res_calendar: Plug memory leak and micro-optimization

ast_variables_destroy is NULL safe, so there is no need to check its
argument before passing it.

ASTERISK-25524 #close
Reported by: Jesper

Change-Id: Ib0f8057642e9d471960f1a79fd42e5a3ce587d3b
res/res_calendar.c
res/res_calendar_caldav.c