[Libguestfs] [PATCH 11/13] Coverity: Missing return on error path.

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


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

diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c
index 448f3b4..ceadfdb 100644
--- a/daemon/guestfsd.c
+++ b/daemon/guestfsd.c
@@ -429,6 +429,7 @@ add_string (char ***argv, int *size, int *alloc, const char *str)
     if (new_str == NULL) {
       reply_with_perror ("strdup");
       free_strings (*argv);
+      return -1;
     }
   } else
     new_str = NULL;
-- 
1.7.5.1




More information about the Libguestfs mailing list