]> git.ozlabs.org Git - petitboot/blobdiff - devices/yaboot-parser.c
Don't reset dev->id in yaboot parser
[petitboot] / devices / yaboot-parser.c
index fc55047809b09ad6e8b8fc8fc533406fca363498..8d65ce27e1cc7bd6f29268785b0df31d6394b0fc 100644 (file)
@@ -203,7 +203,7 @@ static int yaboot_parse(const char *devicepath, const char *_mountpoint)
                        sprintf(endp+1, "%d", partnr);
 
                        mountpoint = mountpoint_for_device(new_dev);
-                       dev->id = new_dev;
+                       free(new_dev);
                }
        }