Skip to content

Commit

Permalink
Umount if failed?
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Utkin committed Sep 24, 2015
1 parent a8a346c commit 52c59e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/volume.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ char *pusb_volume_get(t_pusb_options *opts, DBusConnection *dbus)
if (!mount_point)
{
log_error("Unable to retrieve %s mount point\n", volume_udi);
pusb_volume_destroy(mount_point);
return (NULL);
}
return (mount_point);
Expand Down

0 comments on commit 52c59e7

Please sign in to comment.