From: Eric Biggers Date: Mon, 10 Feb 2014 00:25:32 +0000 (-0600) Subject: wimlib_mount_image(): Correctly return NOMEM in one case X-Git-Tag: v1.6.2~29 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=dabcd6fe9a32f58709c513d6bf641773baa8f6aa wimlib_mount_image(): Correctly return NOMEM in one case --- diff --git a/src/mount_image.c b/src/mount_image.c index 586722e5..41478d92 100644 --- a/src/mount_image.c +++ b/src/mount_image.c @@ -2476,8 +2476,10 @@ wimlib_mount_image(WIMStruct *wim, int image, const char *dir, DEBUG("Preparing arguments to fuse_main()"); dir_copy = STRDUP(dir); - if (!dir_copy) + if (!dir_copy) { + ret = WIMLIB_ERR_NOMEM; goto out_free_message_queue_names; + } argc = 0; argv[argc++] = "wimlib";