Hello. After a very recent commit that added sysfs lib support, if devno is set to zero in blkid_devno_to_wholedisk(), the cxt variable remains initialized and so there is a call to sysfs_deinit() and then free() with an invalid pointer as parameter: int blkid_devno_to_wholedisk(dev_t dev, char *diskname, size_t len, dev_t *diskdevno) { struct sysfs_cxt cxt; int is_part = 0; if (!dev) ---> goto err; if (sysfs_init(&cxt, dev, NULL)) goto err; [...] err: sysfs_deinit(&cxt); Francesco -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html