Signed-off-by: Jan Friesse <jfrie...@redhat.com> --- exec/coroparse.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/exec/coroparse.c b/exec/coroparse.c index a42dbb3..488e1e9 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); -- 1.7.1 _______________________________________________ Openais mailing list Openais@lists.linux-foundation.org https://lists.linux-foundation.org/mailman/listinfo/openais