Core/SOAP: Fix new/free mismatch reported by ASan

(cherry picked from commit 2a12e96d1739a12c5ecfe375eabf5343557cb592)
This commit is contained in:
jackpoz
2022-03-11 21:20:17 +01:00
committed by Shauren
parent 53d19b09f4
commit 4f14cef5f3
+1 -2
View File
@@ -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: