From 6399b416ad79fb2727cf1054b64032d401019b0d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 8 Jun 2011 22:38:53 +0100 Subject: [PATCH] Coverity: Missing return on error path. (cherry picked from commit 7a091a11d7aeddc170e4d1b833fd9d7d18c00841) --- daemon/guestfsd.c | 1 + 1 file changed, 1 insertion(+) 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.8.3.1