On review by Jan Tomko, for my earlier Patchv2, which had the return NULL replace by the return conn ,
here is the review:
```
>+cleanup:
> return conn;
>
> error:
> virDispatchError(NULL);
>- virObjectUnref(conn);
'conn' is still not marked as g_auto, so this unref needs to stay.
> conn = NULL;
> goto cleanup;
These two lines can be replaced by return NULL, and the cleanup: label
above removed.
```
I went ahead with what this review meant, and initially my PATCHv1 also did the same thing return NULL, because if there is an error the function is supposed to return NULL anyways.