libwbclient: Streamline result processing of wbcCredentialCache()
[ira/wip.git] / nsswitch / libwbclient / wbc_pam.c
index c914d597f074f4b5f530ae80261b4100774c9539..b35284b24394fc740490f1ef286c605f6cf09d18 100644 (file)
@@ -1223,11 +1223,9 @@ wbcErr wbcCredentialCache(struct wbcCredentialCacheParams *params,
                goto fail;
        }
 
-       TALLOC_FREE(request.extra_data.data);
-       winbindd_free_response(&response);
        *info = result;
-       return WBC_ERR_SUCCESS;
-
+       result = NULL;
+       status = WBC_ERR_SUCCESS;
 fail:
        TALLOC_FREE(request.extra_data.data);
        winbindd_free_response(&response);