Commit 4bd31678 authored by Ken Martin's avatar Ken Martin
Browse files

another memory fix

parent acf25de6
......@@ -166,8 +166,12 @@ static void CreateInitFile(cmLoadedCommandInfo *info,
/* copy the file if different */
info->CAPI->CopyFileIfDifferent(tempOutputFile, outFileName);
info->CAPI->RemoveFile(tempOutputFile);
info->CAPI->FreeArguments(numCommands,capcommands);
info->CAPI->Free(tempOutputFile);
for ( i = 0; i < numCommands; i++ )
{
info->CAPI->Free(capcommands[i]);
}
free(capcommands);
free(tempOutputFile);
info->CAPI->Free(kitName);
free(outFileName);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment