Skip to content

Commit

Permalink
[Libomptarget][Obvious] Fix uninitialized pointer
Browse files Browse the repository at this point in the history
Summary:
This pointer was not initliazed to null which meant that it would be
erronenously deleted by plugins that were not in use.
  • Loading branch information
jhuber6 committed Jul 11, 2023
1 parent 9a7677d commit 1776dc8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,8 @@ struct GenericPluginTy {

/// Construct a plugin instance.
GenericPluginTy(Triple::ArchType TA)
: RequiresFlags(OMP_REQ_UNDEFINED), GlobalHandler(nullptr), JIT(TA) {}
: RequiresFlags(OMP_REQ_UNDEFINED), GlobalHandler(nullptr), JIT(TA),
RPCServer(nullptr) {}

virtual ~GenericPluginTy() {}

Expand Down

0 comments on commit 1776dc8

Please sign in to comment.