Skip to content

curler: Don't strdup(3) the result buffer#95

Merged
ac000 merged 1 commit intomasterfrom
pers-jason-buf
May 7, 2025
Merged

curler: Don't strdup(3) the result buffer#95
ac000 merged 1 commit intomasterfrom
pers-jason-buf

Conversation

@ac000
Copy link
Copy Markdown
Owner

@ac000 ac000 commented May 7, 2025

When returning the JSON result buffer there is no need to strdup(3) it, rather we can just point *buf straight at it.

When returning the JSON result buffer there is no need to strdup(3) it,
rather we can just point *buf straight at it.

Signed-off-by: Andrew Clayton <ac@sigsegv.uk>
@ac000 ac000 merged commit c5ef1e6 into master May 7, 2025
10 checks passed
@ac000 ac000 deleted the pers-jason-buf branch May 7, 2025 23:07
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.

1 participant