From 6e9399060072152412915e41a8b55e32b3275061 Mon Sep 17 00:00:00 2001 From: Alexander Nedotsukov Date: Thu, 25 Jan 2007 15:46:45 +0000 Subject: [PATCH] - Fixed reference counting in iso_volset_new(). - Plugged memory leak in iso_volset_free(). --- libisofs/trunk/libisofs/volume.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libisofs/trunk/libisofs/volume.c b/libisofs/trunk/libisofs/volume.c index 65cbbbf9..68b2a0ca 100755 --- a/libisofs/trunk/libisofs/volume.c +++ b/libisofs/trunk/libisofs/volume.c @@ -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); } }