From: Corey Farrell Date: Tue, 10 Oct 2017 03:51:03 +0000 (-0400) Subject: res_pjproject: Fix cleanup of buildopts vector. X-Git-Tag: 13.18.0-rc1~13^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48971e4d43995d606703a959240fa9700cb62f73;p=thirdparty%2Fasterisk.git res_pjproject: Fix cleanup of buildopts vector. ASTERISK-27306 Change-Id: I3bed0edf3f55b1d4adcbabb25ec14f11dc766c72 --- diff --git a/res/res_pjproject.c b/res/res_pjproject.c index e02515b483..fa99919abb 100644 --- a/res/res_pjproject.c +++ b/res/res_pjproject.c @@ -546,7 +546,7 @@ static int unload_module(void) pj_log_set_log_func(log_cb_orig); pj_log_set_decor(decor_orig); - AST_VECTOR_REMOVE_CMP_UNORDERED(&buildopts, NULL, NOT_EQUALS, ast_free); + AST_VECTOR_CALLBACK_VOID(&buildopts, ast_free); AST_VECTOR_FREE(&buildopts); ast_debug(3, "Stopped PJPROJECT logging to Asterisk logger\n");