!8 [bugfix] block: fix memleaks in bdrv_refresh_filename

Merge pull request !8 from panny060/master
This commit is contained in:
openeuler-ci-bot 2020-02-05 11:38:03 +08:00 committed by Gitee
commit bf8b118e4d

View File

@ -47,7 +47,7 @@ index 9ae5c0e..52bad05 100644
child->bs->exact_filename);
pstrcpy(bs->filename, sizeof(bs->filename), child->bs->filename);
+ qobject_unref(child->bs->full_open_options);
+ qobject_unref(bs->full_open_options);
bs->full_open_options = qobject_ref(child->bs->full_open_options);
return;