mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
Coverity: Don't call free_strings (NULL).
(cherry picked from commit 48ebf50f31)
This commit is contained in:
@@ -76,7 +76,6 @@ do_readlinklist (const char *path, char *const *names)
|
||||
r = readlinkat (fd_cwd, names[i], link, sizeof link);
|
||||
if (r >= PATH_MAX) {
|
||||
reply_with_perror ("readlinkat: returned link is too long");
|
||||
free_strings (ret);
|
||||
close (fd_cwd);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user