Browse Source

Umount if failed?

master
Andrey Utkin 9 years ago
parent
commit
52c59e7ec6
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/volume.c

+ 1
- 0
src/volume.c View File

@ -143,6 +143,7 @@ char *pusb_volume_get(t_pusb_options *opts, DBusConnection *dbus)
if (!mount_point) if (!mount_point)
{ {
log_error("Unable to retrieve %s mount point\n", volume_udi); log_error("Unable to retrieve %s mount point\n", volume_udi);
pusb_volume_destroy(mount_point);
return (NULL); return (NULL);
} }
return (mount_point); return (mount_point);


Loading…
Cancel
Save