Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add xalloc.c with wrapper functions for memory allocation #1400

Merged
merged 2 commits into from
May 23, 2024

Conversation

dcantrell
Copy link
Collaborator

xalloc() and xrealloc() previously appeared in parse_yaml.c. Move them out in to the main library and expand the list of wrappers so the rest of the code can start using these functions and we can drop lots of assert() statements.

Use these new xalloc.c functions throughout lib/ and src/

@dcantrell dcantrell added this to the v2.0 milestone May 23, 2024
@dcantrell dcantrell requested a review from jimbair May 23, 2024 16:10
@dcantrell dcantrell self-assigned this May 23, 2024
xalloc() and xrealloc() previously appeared in parse_yaml.c.  Move
them out in to the main library and expand the list of wrappers so the
rest of the code can start using these functions and we can drop lots
of assert() statements.

Signed-off-by: David Cantrell <dcantrell@redhat.com>
Signed-off-by: David Cantrell <dcantrell@redhat.com>
@dcantrell dcantrell merged commit fc7e158 into rpminspect:main May 23, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants