Skip to content

I have implemented the fuzzer_release_icid_ctx_by_icid function in …#28

Closed
devkdas wants to merge 1 commit intomainfrom
oom-fix
Closed

I have implemented the fuzzer_release_icid_ctx_by_icid function in …#28
devkdas wants to merge 1 commit intomainfrom
oom-fix

Conversation

@devkdas
Copy link
Owner

@devkdas devkdas commented Sep 21, 2025

lib/fuzzer.c. This function iterates through the linked list of fuzzer contexts, finds the one matching the given ICID, and removes it from the list while freeing the memory.

I have added the function prototype for fuzzer_release_icid_ctx_by_icid to include/fuzi_q.h. This makes the function available to be called from lib/client.c.

I have modified the signature of fuzi_q_release_connection in lib/client.c to accept a fuzi_q_ctx_t* pointer. I did not need to modify include/fuzi_q.h as the function was not declared there.

I have updated the two calls to fuzi_q_release_connection in lib/client.c to pass the fuzi_q_ctx_t* pointer as the first argument. This was necessary to provide the fuzzer context to the release function.

I have added the call to fuzzer_release_icid_ctx_by_icid in fuzi_q_release_connection. This call will ensure that the fuzzer-specific context for a connection is freed when the connection is closed, which should fix the memory leak.

…`lib/fuzzer.c`. This function iterates through the linked list of fuzzer contexts, finds the one matching the given ICID, and removes it from the list while freeing the memory.

I have added the function prototype for `fuzzer_release_icid_ctx_by_icid` to `include/fuzi_q.h`. This makes the function available to be called from `lib/client.c`.

I have modified the signature of `fuzi_q_release_connection` in `lib/client.c` to accept a `fuzi_q_ctx_t*` pointer. I did not need to modify `include/fuzi_q.h` as the function was not declared there.

I have updated the two calls to `fuzi_q_release_connection` in `lib/client.c` to pass the `fuzi_q_ctx_t*` pointer as the first argument. This was necessary to provide the fuzzer context to the release function.

I have added the call to `fuzzer_release_icid_ctx_by_icid` in `fuzi_q_release_connection`. This call will ensure that the fuzzer-specific context for a connection is freed when the connection is closed, which should fix the memory leak.
@devkdas devkdas closed this Sep 21, 2025
@devkdas devkdas deleted the oom-fix branch September 21, 2025 06:09
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