From: Richard W.M. Jones Date: Wed, 8 Jun 2011 21:38:53 +0000 (+0100) Subject: Coverity: Missing return on error path. X-Git-Tag: 1.8.8~3 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=4e8dda6ae5c6a4b2f3de42d109287f039e3a01b2;p=libguestfs.git Coverity: Missing return on error path. (cherry picked from commit 7a091a11d7aeddc170e4d1b833fd9d7d18c00841) --- diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index e18ab31..1fc3ce3 100644 --- a/daemon/guestfsd.c +++ b/daemon/guestfsd.c @@ -444,6 +444,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;