1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-30 23:21:08 +03:00

analyze: fix OOM handling + fix memory leak

This commit is contained in:
Lennart Poettering 2013-04-08 19:42:29 +02:00
parent f5b7a3fb53
commit 903a0b07e0

View File

@ -851,11 +851,15 @@ static int parse_argv(int argc, char *argv[])
break;
case ARG_DOT_FROM_PATTERN:
arg_dot_from_patterns = strv_append(arg_dot_from_patterns, optarg);
if (strv_extend(&arg_dot_from_patterns, optarg) < 0)
return log_oom();
break;
case ARG_DOT_TO_PATTERN:
arg_dot_to_patterns = strv_append(arg_dot_to_patterns, optarg);
if (strv_extend(&arg_dot_to_patterns, optarg) < 0)
return log_oom();
break;
case -1: