Index: apps/app_adsiprog.c =================================================================== --- apps/app_adsiprog.c (revision 7982) +++ apps/app_adsiprog.c (working copy) @@ -1359,13 +1359,11 @@ ast_log(LOG_WARNING, "Can't open file '%s'\n", fn); return NULL; } - scr = malloc(sizeof(struct adsi_script)); + scr = ast_calloc(1, sizeof(struct adsi_script)); if (!scr) { fclose(f); - ast_log(LOG_WARNING, "Out of memory loading script '%s'\n", fn); return NULL; } - memset(scr, 0, sizeof(struct adsi_script)); /* Create "main" as first subroutine */ getsubbyname(scr, "main", NULL, 0); while(!feof(f)) {