Compare commits
1 Commits
ZeroTwoEig
...
ZeroTwoFou
Author | SHA1 | Date | |
---|---|---|---|
4108ddd995 |
@ -20,6 +20,8 @@ iso_volset_new(struct iso_volume *vol, const char *id)
|
|||||||
volset->volume = malloc(sizeof(void *));
|
volset->volume = malloc(sizeof(void *));
|
||||||
volset->volume[0] = vol;
|
volset->volume[0] = vol;
|
||||||
volset->volset_id = strdup(id);
|
volset->volset_id = strdup(id);
|
||||||
|
|
||||||
|
vol->refcount++;
|
||||||
return volset;
|
return volset;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,7 +35,6 @@ iso_volset_free(struct iso_volset *volset)
|
|||||||
}
|
}
|
||||||
free(volset->volume);
|
free(volset->volume);
|
||||||
free(volset->volset_id);
|
free(volset->volset_id);
|
||||||
free(volset);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user