Index: res/res_monitor.c =================================================================== --- res/res_monitor.c (revision 69258) +++ res/res_monitor.c (working copy) @@ -154,7 +154,7 @@ int directory = strchr(fname_base, '/') ? 1 : 0; /* try creating the directory just in case it doesn't exist */ if (directory) { - char *name = strdup(fname_base); + char *name = ast_strdup(fname_base); snprintf(tmp, sizeof(tmp), "mkdir -p \"%s\"",dirname(name)); ast_free(name); ast_safe_system(tmp); @@ -186,9 +186,9 @@ /* Determine file format */ if (!ast_strlen_zero(format_spec)) { - monitor->format = strdup(format_spec); + monitor->format = ast_strdup(format_spec); } else { - monitor->format = strdup("wav"); + monitor->format = ast_strdup("wav"); } /* open files */ @@ -369,7 +369,7 @@ int directory = strchr(fname_base, '/') ? 1 : 0; /* try creating the directory just in case it doesn't exist */ if (directory) { - char *name = strdup(fname_base); + char *name = ast_strdup(fname_base); snprintf(tmp, sizeof(tmp), "mkdir -p %s",dirname(name)); ast_free(name); ast_safe_system(tmp); Index: res/res_indications.c =================================================================== --- res/res_indications.c (revision 69258) +++ res/res_indications.c (working copy) @@ -314,8 +314,8 @@ return -1; } ts->next = NULL; - ts->name = strdup(v->name); - ts->data = strdup(v->value); + ts->name = ast_strdup(v->name); + ts->data = ast_strdup(v->value); if (ps) ps->next = ts; else Index: res/res_features.c =================================================================== --- res/res_features.c (revision 69258) +++ res/res_features.c (working copy) @@ -471,7 +471,7 @@ if (!con) /* Still no context? Bad */ ast_log(LOG_ERROR, "Parking context '%s' does not exist and unable to create\n", parking_con); else { /* Add extension to context */ - if (!ast_add_extension2(con, 1, pu->parkingexten, 1, NULL, NULL, parkedcall, strdup(pu->parkingexten), ast_free, registrar)) + if (!ast_add_extension2(con, 1, pu->parkingexten, 1, NULL, NULL, parkedcall, ast_strdup(pu->parkingexten), ast_free, registrar)) notify_metermaids(pu->parkingexten, parking_con); } /* Tell the peer channel the number of the parking space */ @@ -1946,7 +1946,7 @@ if (con) { char returnexten[AST_MAX_EXTENSION]; snprintf(returnexten, sizeof(returnexten), "%s||t", peername); - ast_add_extension2(con, 1, peername, 1, NULL, NULL, "Dial", strdup(returnexten), ast_free, registrar); + ast_add_extension2(con, 1, peername, 1, NULL, NULL, "Dial", ast_strdup(returnexten), ast_free, registrar); } if (comebacktoorigin) { set_c_e_p(chan, parking_con_dial, peername, 1);