diff options
author | Danny Kukawka <danny.kukawka@web.de> | 2006-07-03 16:42:01 +0000 |
---|---|---|
committer | Danny Kukawka <danny.kukawka@web.de> | 2006-07-03 16:42:01 +0000 |
commit | 3c758020c8b2b8364e7dbe68342a414e043539ad (patch) | |
tree | 1fcc91180472a90b675b15c953682e4b39695489 /libhal-storage | |
parent | 489b8628169dfefe1b1a10179b4f011bdd602bde (diff) |
set pointer adress to NULL after free()
Fixed some memory leaks.
Diffstat (limited to 'libhal-storage')
-rw-r--r-- | libhal-storage/libhal-storage.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libhal-storage/libhal-storage.c b/libhal-storage/libhal-storage.c index 1d16faea..31f234a3 100644 --- a/libhal-storage/libhal-storage.c +++ b/libhal-storage/libhal-storage.c @@ -788,6 +788,8 @@ libhal_drive_free (LibHalDrive *drive) libhal_free_string (drive->model); libhal_free_string (drive->type_textual); libhal_free_string (drive->physical_device); + libhal_free_string (drive->dedicated_icon_drive); + libhal_free_string (drive->dedicated_icon_volume); libhal_free_string (drive->serial); libhal_free_string (drive->firmware_version); libhal_free_string (drive->desired_mount_point); @@ -818,6 +820,7 @@ libhal_volume_free (LibHalVolume *vol) libhal_free_string (vol->desired_mount_point); libhal_free_string (vol->mount_filesystem); libhal_free_string (vol->crypto_backing_volume); + libhal_free_string (vol->storage_device); free (vol); } |