Reacted on warnings of cppcheck.

This commit is contained in:
Thomas Schmitt 2012-03-21 20:28:15 +01:00
parent a2fe1a4100
commit 1247edff95
2 changed files with 5 additions and 2 deletions

View File

@ -2417,9 +2417,11 @@ int iso_image_create_burn_source(IsoImage *image, IsoWriteOpts *opts,
if (!opts->allow_deep_paths) {
ret = make_reloc_dir_if_needed(image, opts, 0);
if (ret < 0)
if (ret < 0) {
free(source);
return ret;
}
}
#endif /* Libisofs_with_rr_reloc_diR */

View File

@ -141,11 +141,12 @@ void update_next(IsoDirIter *iter)
static
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) {
return ISO_NULL_POINTER;
}
data = iter->data;
if (data->err < 0) {
return data->err;