diff options
author | Gui Hecheng <guihc.fnst@cn.fujitsu.com> | 2014-06-26 10:53:03 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-08-22 14:43:12 +0200 |
commit | 3c1a246393995246f69c14170931e476593f68be (patch) | |
tree | 36c9357756c85f2aa72934009ec2d247fad3e579 /btrfs-image.c | |
parent | 5e943194067b1da56717bc57f75be17cc00ee87f (diff) |
btrfs-progs: cleanup unnecessary free if malloc fails in btrfs-image
Don't bother free the buffer if the malloc failed.
Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'btrfs-image.c')
-rw-r--r-- | btrfs-image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfs-image.c b/btrfs-image.c index c1af019d..03cf85e7 100644 --- a/btrfs-image.c +++ b/btrfs-image.c @@ -1632,7 +1632,7 @@ static void *restore_worker(void *data) if (!mdres->error) mdres->error = -ENOMEM; pthread_mutex_unlock(&mdres->mutex); - goto out; + pthread_exit(NULL); } while (1) { |