Skip to content

Navigation Menu

Sign in
Sign up

Introduce generic XDR freeing macros - #132

Open
simo5 wants to merge 1 commit into
gssapi:main from
simo5:auto_xdr_free
Open

Introduce generic XDR freeing macros #132
simo5 wants to merge 1 commit into
gssapi:main from
simo5:auto_xdr_free

Conversation

@simo5

@simo5 simo5 commented Sep 2, 2026

Copy link
Copy Markdown
Member

Add gp_xdr_proc, gp_xdr_free, and gp_xdr_free_ptr helper macros using C11 _Generic to automatically select the appropriate XDR procedure based on argument type. Replace repetitive xdr_free() and free() patterns across the codebase to reduce boilerplate and ensure safer memory cleanup.

Assisted-by: Gemini:Gemini 3.7 Flash

@simo5 simo5 self-assigned this Sep 2, 2026
Add gp_xdr_proc, gp_xdr_free, and gp_xdr_free_ptr helper macros
using C11 _Generic to automatically select the appropriate XDR
procedure based on argument type. Replace repetitive xdr_free()
and free() patterns across the codebase to reduce boilerplate and
ensure safer memory cleanup.
Assisted-by: Gemini:Gemini 3.7 Flash
Signed-off-by: Simo Sorce <simo@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /