Search
j0ke.net Open Build Service
>
Projects
>
GFS
>
multipath-tools
> multipath-tools-kpartx-crash
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File multipath-tools-kpartx-crash of Package multipath-tools
diff --git a/kpartx/devmapper.c b/kpartx/devmapper.c index 5b27487..4b228ed 100644 --- a/kpartx/devmapper.c +++ b/kpartx/devmapper.c @@ -95,19 +95,16 @@ dm_addmap (int task, const char *name, c } sprintf(prefixed_uuid, UUID_PREFIX "%s", part, uuid); if (!dm_task_set_uuid(dmt, prefixed_uuid)) - goto freeout; + goto addout; } dm_task_no_open_count(dmt); r = dm_task_run (dmt); - freeout: - if (prefixed_uuid) - free(prefixed_uuid); - addout: dm_task_destroy (dmt); + return r; }