summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/eeze/eeze_disk.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/eeze/eeze_disk.c b/src/lib/eeze/eeze_disk.c
index 80b0c31437..d28ad775ea 100644
--- a/src/lib/eeze/eeze_disk.c
+++ b/src/lib/eeze/eeze_disk.c
@@ -203,7 +203,7 @@ eeze_disk_new_from_mount(const char *mount_point)
203{ 203{
204 Eeze_Disk *disk = NULL; 204 Eeze_Disk *disk = NULL;
205 _udev_device *dev = NULL; 205 _udev_device *dev = NULL;
206 const char *syspath = NULL, *source, *uuid = NULL, *label = NULL, *devpath = NULL; 206 const char *source, *uuid = NULL, *label = NULL, *devpath = NULL;
207 207
208 EINA_SAFETY_ON_NULL_RETURN_VAL(mount_point, NULL); 208 EINA_SAFETY_ON_NULL_RETURN_VAL(mount_point, NULL);
209 209
@@ -261,8 +261,6 @@ error:
261 eina_stringshare_del(label); 261 eina_stringshare_del(label);
262 else if (devpath) 262 else if (devpath)
263 eina_stringshare_del(devpath); 263 eina_stringshare_del(devpath);
264 if (syspath)
265 eina_stringshare_del(syspath);
266 if (dev) 264 if (dev)
267 udev_device_unref(dev); 265 udev_device_unref(dev);
268 return NULL; 266 return NULL;