Skip to content

Commit

Permalink
Merge pull request #452 from psychocoderHPC/fix-MessageHeaderAllocation
Browse files Browse the repository at this point in the history
fix message header allocation
  • Loading branch information
f-schmitt-zih committed May 28, 2014
2 parents f733143 + 03af6a8 commit 5c6bb8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ struct MessageHeader

static MessageHeader * create()
{
return (MessageHeader*) new uint8_t(bytes);
return (MessageHeader*) new uint8_t[bytes];
}

static void destroy(MessageHeader * obj)
Expand Down

0 comments on commit 5c6bb8a

Please sign in to comment.