There's more stuff than device info to clear nowadays. Drop the
misleading comment. Shorten the comment saying that device info is freed
elsewhere when 'parentnet' is present.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
if (!def)
return;
- /* Free all resources in the hostdevdef. Currently the only
- * such resource is the virDomainDeviceInfo.
- */
-
- /* If there is a parentnet device object, it will handle freeing
- * def->info.
- */
+ /* Device info is freed elsewhere with 'parentnet' if present. */
if (!def->parentnet)
virDomainDeviceInfoFree(def->info);