hal/libhal-storage libhal-storage.c,1.35,1.36
Danny Kukawka
dkukawka at kemper.freedesktop.org
Mon Jul 3 09:42:03 PDT 2006
Update of /cvs/hal/hal/libhal-storage
In directory kemper:/tmp/cvs-serv12884/libhal-storage
Modified Files:
libhal-storage.c
Log Message:
2006-07-03 Danny Kukawka <danny.kukawka at web.de>
* libhal-storage/libhal-storage.c: (libhal_drive_free),
(libhal_volume_free): set pointer adress to NULL after free()
* libhal/libhal.c: (libhal_free_string_array),
(libhal_free_string): Fixed some memory leaks.
Index: libhal-storage.c
===================================================================
RCS file: /cvs/hal/hal/libhal-storage/libhal-storage.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- libhal-storage.c 9 May 2006 20:28:01 -0000 1.35
+++ libhal-storage.c 3 Jul 2006 16:42:01 -0000 1.36
@@ -788,6 +788,8 @@
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_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);
}
More information about the hal-commit
mailing list