Skip to content

Fix memory leak if calling SoapServer::setClass() twice #14381

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

Closed
wants to merge 1 commit into from

Conversation

nielsdos
Copy link
Member

No description provided.

ext/soap/soap.c Outdated
static void delete_argv(struct _soap_class *class)
{
if (class->argc) {
for (int i = 0; i < class->argc;i++) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: just for the style space before the incrementation :)

Copy link
Member Author

@nielsdos nielsdos May 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, and for master this should even become uint32_t, which I'll do next... (after CI passes and this is merged)

@nielsdos nielsdos force-pushed the soap-setclass-leak branch from 9cdd055 to 29afda7 Compare May 30, 2024 21:50
@nielsdos nielsdos closed this in 23912f5 May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants