Skip to content

Commit

Permalink
Fix mismatched new/free in Process:RunPrivateStateThread
Browse files Browse the repository at this point in the history
NFC

llvm-svn: 279627
  • Loading branch information
labath committed Aug 24, 2016
1 parent 8e29774 commit c22e32d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lldb/source/Target/Process.cpp
Expand Up @@ -4297,9 +4297,8 @@ Process::HaltPrivate()
thread_result_t
Process::PrivateStateThread (void *arg)
{
PrivateStateThreadArgs real_args = *static_cast<PrivateStateThreadArgs *> (arg);
free (arg);
thread_result_t result = real_args.process->RunPrivateStateThread(real_args.is_secondary_thread);
std::unique_ptr<PrivateStateThreadArgs> args_up(static_cast<PrivateStateThreadArgs *>(arg));
thread_result_t result = args_up->process->RunPrivateStateThread(args_up->is_secondary_thread);
return result;
}

Expand Down

0 comments on commit c22e32d

Please sign in to comment.