diff options
author | Matt Dew <marcoz@osource.org> | 2014-03-06 22:03:03 -0700 |
---|---|---|
committer | Matt Dew <marcoz@osource.org> | 2014-03-06 22:03:03 -0700 |
commit | b332cd20ee14049606e3656490d13a8efa6b23ee (patch) | |
tree | baa21a77582c4c65431b0b14673b9cb8178ca864 /hw/xquartz/mach-startup/stub.c | |
parent | f41ab8c60780ea8f87354e536e5b73cb23878eb7 (diff) | |
parent | 5e0432f797d58fe1a69ef538694f65bbba38737f (diff) |
Merge branch 'server-1.15-branch' of git://people.freedesktop.org/~jeremyhu/xserver into server-1.15-branch
Diffstat (limited to 'hw/xquartz/mach-startup/stub.c')
-rw-r--r-- | hw/xquartz/mach-startup/stub.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/xquartz/mach-startup/stub.c b/hw/xquartz/mach-startup/stub.c index b5a3168ca..756e4ef2d 100644 --- a/hw/xquartz/mach-startup/stub.c +++ b/hw/xquartz/mach-startup/stub.c @@ -353,6 +353,10 @@ main(int argc, char **argv, char **envp) newenvp = (string_array_t)calloc((1 + envpc), sizeof(string_t)); if (!newargv || !newenvp) { + /* Silence the clang static analyzer */ + free(newargv); + free(newenvp); + asl_log(aslc, NULL, ASL_LEVEL_ERR, "Xquartz: Memory allocation failure"); return EXIT_FAILURE; |