Coverity: Missing return on error path.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 8 Jun 2011 21:38:53 +0000 (22:38 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 13 Jun 2011 13:22:23 +0000 (14:22 +0100)
(cherry picked from commit 7a091a11d7aeddc170e4d1b833fd9d7d18c00841)

daemon/guestfsd.c

index 448f3b4..ceadfdb 100644 (file)
@@ -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;