[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Condor-devel] SOAP memory ownership?
- Date: Mon, 9 Oct 2006 15:46:05 -0500
- From: Erik Paulson <epaulson@xxxxxxxxxxx>
- Subject: [Condor-devel] SOAP memory ownership?
When sending back a SOAP condor__Status structure, who cleans up the memory
for the .message portion of the structure? It's a mix of soap_mallocs and
just assignments in the current SOAP code - from newJob in the schedd:
result.response.status.code = FAIL;
result.response.status.message = "Could not create new job.";
} else {
// Create a Job for this new job.
Job *job = new Job(clusterId, result.response.integer);
ASSERT(job);
CondorError errstack;
if (job->initialize(errstack)) {
result.response.integer = -1;
result.response.status.code =
(condor__StatusCode) errstack.code();
result.response.status.message =
(char *) soap_malloc(soap, strlen(errstack.message()) + 1);
strcpy(result.response.status.message,
errstack.message());
Thanks,
-Erik