Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
esx: reorder code to avoid need to VIR_FREE mimeType
mimeType is initialized to NULL, and then only set in one place, just before a check (not involving mimeType) that then VIR_FREEs mimeType if it fails. If we just reorder the code to do the check prior to setting mimeType, then there won't be any need to VIR_FREE(mimeType) on failure (because it will already be empty/NULL). Signed-off-by: Laine Stump <[email protected]> Reviewed-by: Michal Privoznik <[email protected]>
- Loading branch information