- Fixed reference counting in iso_volset_new().
- Plugged memory leak in iso_volset_free().
This commit is contained in:
parent
76e03dbcd1
commit
6e93990600
@ -20,8 +20,6 @@ iso_volset_new(struct iso_volume *vol, const char *id)
|
||||
volset->volume = malloc(sizeof(void *));
|
||||
volset->volume[0] = vol;
|
||||
volset->volset_id = strdup(id);
|
||||
|
||||
vol->refcount++;
|
||||
return volset;
|
||||
}
|
||||
|
||||
@ -35,6 +33,7 @@ iso_volset_free(struct iso_volset *volset)
|
||||
}
|
||||
free(volset->volume);
|
||||
free(volset->volset_id);
|
||||
free(volset);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user