summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
Diffstat (limited to 'discover')
-rw-r--r--discover/device-handler.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index 04a4484..94abb51 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -803,11 +803,12 @@ static int umount_device(struct discover_device *dev)
return -1;
dev->mounted = false;
- talloc_free(dev->mount_path);
- dev->mount_path = NULL;
pb_rmdir_recursive(mount_base(), dev->mount_path);
+ talloc_free(dev->mount_path);
+ dev->mount_path = NULL;
+
return 0;
}
OpenPOWER on IntegriCloud