Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sqlines/sqlines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ int Sqlines::ProcessFile(std::string &file, std::string &out_file, int *in_size,
if(in_lines != NULL)
*in_lines = lines;

delete input;
delete [] input;

return rc;
}
Expand Down
4 changes: 2 additions & 2 deletions sqlparser/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ int CreateAssessmentReport(void *parser, const char *summary)
// Free allocated result
void FreeOutput(const char *output)
{
delete output;
delete [] output;
}

#ifdef WIN32
Expand All @@ -96,4 +96,4 @@ BOOL APIENTRY DllMain( HMODULE /*hModule*/, DWORD ul_reason_for_call, LPVOID /*
return TRUE;
}

#endif
#endif
4 changes: 2 additions & 2 deletions sqlparser/token.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Token::~Token()
}

// Delete target values
delete t_str;
delete [] t_str;
delete t_wstr;
t_str = NULL;
t_wstr = NULL;
Expand Down Expand Up @@ -914,4 +914,4 @@ bool TokenStr::Compare(TokenStr *tokenstr, const char ch, const wchar_t /*wch*/,
return true;

return false;
}
}