Skip to content

Commit

Permalink
sheepdog: fix resource leak with sd_snapshot_create
Browse files Browse the repository at this point in the history
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  • Loading branch information
colo-ft authored and Michael Tokarev committed May 8, 2015
1 parent e5a88b0 commit 973a852
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions block/sheepdog.c
Expand Up @@ -2341,6 +2341,7 @@ static int sd_snapshot_create(BlockDriverState *bs, QEMUSnapshotInfo *sn_info)
if (ret < 0) {
error_report("failed to create inode for snapshot: %s",
error_get_pretty(local_err));
error_free(local_err);
goto cleanup;
}

Expand Down

0 comments on commit 973a852

Please sign in to comment.