Reacted on warnings of cppcheck.
This commit is contained in:
parent
a2fe1a4100
commit
1247edff95
@ -2417,9 +2417,11 @@ int iso_image_create_burn_source(IsoImage *image, IsoWriteOpts *opts,
|
|||||||
|
|
||||||
if (!opts->allow_deep_paths) {
|
if (!opts->allow_deep_paths) {
|
||||||
ret = make_reloc_dir_if_needed(image, opts, 0);
|
ret = make_reloc_dir_if_needed(image, opts, 0);
|
||||||
if (ret < 0)
|
if (ret < 0) {
|
||||||
|
free(source);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* Libisofs_with_rr_reloc_diR */
|
#endif /* Libisofs_with_rr_reloc_diR */
|
||||||
|
|
||||||
|
@ -141,11 +141,12 @@ void update_next(IsoDirIter *iter)
|
|||||||
static
|
static
|
||||||
int find_iter_next(IsoDirIter *iter, IsoNode **node)
|
int find_iter_next(IsoDirIter *iter, IsoNode **node)
|
||||||
{
|
{
|
||||||
struct find_iter_data *data = iter->data;
|
struct find_iter_data *data;
|
||||||
|
|
||||||
if (iter == NULL || node == NULL) {
|
if (iter == NULL || node == NULL) {
|
||||||
return ISO_NULL_POINTER;
|
return ISO_NULL_POINTER;
|
||||||
}
|
}
|
||||||
|
data = iter->data;
|
||||||
|
|
||||||
if (data->err < 0) {
|
if (data->err < 0) {
|
||||||
return data->err;
|
return data->err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user