MINOR: lua: Use consistent error message 'memory allocation failed'

Other locations in the configuration parser use 'memory allocation failed', so
use this one as well.
This commit is contained in:
Tim Duesterhus 2021-01-03 20:04:37 +01:00 committed by Willy Tarreau
parent 621e74afd1
commit f89d43a381

View File

@ -8384,17 +8384,17 @@ static int hlua_config_prepend_path(char **args, int section_type, struct proxy
p = calloc(1, sizeof(*p)); p = calloc(1, sizeof(*p));
if (p == NULL) { if (p == NULL) {
memprintf(err, "out of memory error"); memprintf(err, "memory allocation failed");
goto err; goto err;
} }
p->path = strdup(path); p->path = strdup(path);
if (p->path == NULL) { if (p->path == NULL) {
memprintf(err, "out of memory error"); memprintf(err, "memory allocation failed");
goto err2; goto err2;
} }
p->type = strdup(type); p->type = strdup(type);
if (p->type == NULL) { if (p->type == NULL) {
memprintf(err, "out of memory error"); memprintf(err, "memory allocation failed");
goto err2; goto err2;
} }
LIST_ADDQ(&prepend_path_list, &p->l); LIST_ADDQ(&prepend_path_list, &p->l);