From 52c59e7ec6403f1488bcc50589265b90163477b5 Mon Sep 17 00:00:00 2001 From: Andrey Utkin Date: Thu, 24 Sep 2015 03:28:46 +0300 Subject: [PATCH] Umount if failed? --- src/volume.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/volume.c b/src/volume.c index 1b8fe86..c5a55e6 100644 --- a/src/volume.c +++ b/src/volume.c @@ -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);