diff --git a/exec/coroparse.c b/exec/coroparse.c index a42dbb31..488e1e97 100644 --- a/exec/coroparse.c +++ b/exec/coroparse.c @@ -254,7 +254,8 @@ static int read_uidgid_files_into_objdb( entry = malloc(len); if (entry == NULL) { - return 0; + res = 0; + goto error_exit; } for (return_code = readdir_r(dp, entry, &dirent); @@ -310,7 +311,8 @@ static int read_service_files_into_objdb( entry = malloc(len); if (entry == NULL) { - return 0; + res = 0; + goto error_exit; } for (return_code = readdir_r(dp, entry, &dirent);