|
@@ -54,6 +54,7 @@ static int openfile(char *name, int flags, int growable, QDict *opts)
|
|
|
|
|
|
if (qemuio_bs) {
|
|
if (qemuio_bs) {
|
|
fprintf(stderr, "file open already, try 'help close'\n");
|
|
fprintf(stderr, "file open already, try 'help close'\n");
|
|
|
|
+ QDECREF(opts);
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -171,6 +172,7 @@ static int open_f(BlockDriverState *bs, int argc, char **argv)
|
|
} else if (optind == argc) {
|
|
} else if (optind == argc) {
|
|
return openfile(NULL, flags, growable, opts);
|
|
return openfile(NULL, flags, growable, opts);
|
|
} else {
|
|
} else {
|
|
|
|
+ QDECREF(opts);
|
|
return qemuio_command_usage(&open_cmd);
|
|
return qemuio_command_usage(&open_cmd);
|
|
}
|
|
}
|
|
}
|
|
}
|