[Libguestfs] [PATCH 02/13] Coverity: Don't call free_strings (NULL).

Richard W.M. Jones rjones at redhat.com
Thu Jun 9 10:17:01 UTC 2011


---
 daemon/link.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/daemon/link.c b/daemon/link.c
index 3766d8c..1049640 100644
--- a/daemon/link.c
+++ b/daemon/link.c
@@ -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;
     }
-- 
1.7.5.1




More information about the Libguestfs mailing list