Core/SOAP: Fix new/free mismatch reported by ASan
This commit is contained in:
1 parent
f9fafbab7d
commit
24d4e6977c
1 file changed
+1
-2
@@ -66,8 +66,7 @@ void process_message(struct soap* soap_message)
|
||||
soap_serve(soap_message);
|
||||
soap_destroy(soap_message); // dealloc C++ data
|
||||
soap_end(soap_message); // dealloc data and clean up
|
||||
soap_done(soap_message); // detach soap struct
|
||||
free(soap_message);
|
||||
soap_free(soap_message); // detach soap struct and free up the memory
|
||||
}
|
||||
/*
|
||||
Code used for generating stubs:
|
||||
|
||||
Reference in new issue
Block a user