From: Richard W.M. Jones Date: Wed, 8 Jun 2011 20:56:56 +0000 (+0100) Subject: Coverity: Don't call free_strings (NULL). X-Git-Tag: 1.10.4~14 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=17cd021aef3cc7f6aae57da1b9f84dff9dfc041c;p=libguestfs.git Coverity: Don't call free_strings (NULL). (cherry picked from commit 48ebf50f3136ac27f4252662e351230ffa2b15e5) --- 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; }