char const *fr_strerror_pop(void);
void fr_perror(char const *, ...) CC_HINT(format (printf, 1, 2));
+void fr_strerror_free(void);
void fr_canonicalize_error(TALLOC_CTX *ctx, char **spaces, char **text, ssize_t slen, char const *msg);
char const *fr_syserror(int num);
return 1;
}
- if (fr_dict_from_file(NULL, &dict, dict_dir, FR_DICTIONARY_FILE, "radius") < 0) {
+ if (fr_dict_from_file(autofree, &dict, dict_dir, FR_DICTIONARY_FILE, "radius") < 0) {
fr_perror("unit_test_attribute");
return 1;
}
return 1;
}
- my_secret = talloc_strdup(NULL, "testing123");
+ my_secret = talloc_strdup(autofree, "testing123");
if (argc < 2) {
process_file(dict, NULL, "-");
fr_log_talloc_report(NULL);
}
+ fr_strerror_free();
talloc_free(autofree);
return 0;