Changeset d858a660 in mainline for uspace/lib/fdisk/src/fdisk.c
- Timestamp:
- 2017-07-04T15:05:43Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9c2c7d2
- Parents:
- 2456fd0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/fdisk/src/fdisk.c
r2456fd0 rd858a660 269 269 part->pcnt = vpinfo.pcnt; 270 270 part->fstype = vpinfo.fstype; 271 part->label = str_dup(vpinfo.label); 271 272 } 272 273 … … 301 302 return EOK; 302 303 error: 304 if (part != NULL) 305 free(part->label); 303 306 free(part); 304 307 return rc; … … 315 318 if (link_used(&part->llog_ba)) 316 319 list_remove(&part->llog_ba); 320 321 free(part->label); 317 322 free(part); 318 323 } … … 667 672 info->fstype = part->fstype; 668 673 info->pkind = part->pkind; 674 info->label = part->label; 669 675 return EOK; 670 676 }
Note:
See TracChangeset
for help on using the changeset viewer.