mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-13 15:04:42 +00:00
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:
parent
621e74afd1
commit
f89d43a381
@ -8384,17 +8384,17 @@ static int hlua_config_prepend_path(char **args, int section_type, struct proxy
|
||||
|
||||
p = calloc(1, sizeof(*p));
|
||||
if (p == NULL) {
|
||||
memprintf(err, "out of memory error");
|
||||
memprintf(err, "memory allocation failed");
|
||||
goto err;
|
||||
}
|
||||
p->path = strdup(path);
|
||||
if (p->path == NULL) {
|
||||
memprintf(err, "out of memory error");
|
||||
memprintf(err, "memory allocation failed");
|
||||
goto err2;
|
||||
}
|
||||
p->type = strdup(type);
|
||||
if (p->type == NULL) {
|
||||
memprintf(err, "out of memory error");
|
||||
memprintf(err, "memory allocation failed");
|
||||
goto err2;
|
||||
}
|
||||
LIST_ADDQ(&prepend_path_list, &p->l);
|
||||
|
Loading…
Reference in New Issue
Block a user