pbx.c: On error, ast_add_extension2_lockopt should always free 'data'
In the event that the desired extension already exists, ast_add_extension2_lockopt() will free the 'data' it is passed before returning an error, so we should not be freeing it ourselves. Additionally, there were two places where ast_add_extension2_lockopt() could return an error without also freeing the 'data' pointer, so we add that. ASTERISK-29097 #close Change-Id: I904707aae55169feda050a5ed7c6793b53fe6eae
parent
773f424c
No related branches found
No related tags found
Showing
- include/asterisk/pbx.h 6 additions, 2 deletionsinclude/asterisk/pbx.h
- main/pbx.c 11 additions, 1 deletionmain/pbx.c
- res/parking/parking_bridge_features.c 0 additions, 1 deletionres/parking/parking_bridge_features.c
- res/res_parking.c 0 additions, 1 deletionres/res_parking.c
- res/res_pjsip_config_wizard.c 0 additions, 1 deletionres/res_pjsip_config_wizard.c
Loading
Please register or sign in to comment