instructionAPI: Don't try to delete in Instruction copy ctor
authorJosh Stone <jistone@redhat.com>
Tue, 21 Jan 2014 01:26:53 +0000 (17:26 -0800)
committerJosh Stone <jistone@redhat.com>
Tue, 21 Jan 2014 01:26:53 +0000 (17:26 -0800)
commitd72abe3d1b655391c4321f171a496e6c144ec3aa
tree6c0145b0b3b7391a6c87542ee200587d1e9cc72e
parentab41466c65426dbf00dcad6933232949a48a295b
instructionAPI: Don't try to delete in Instruction copy ctor

The Instruction copy constructor was trying to check the previous m_size
and delete previous m_RawInsn before copying, but there isn't any previous
state because this is a new object.

Reported by coverity as UNINIT.
instructionAPI/src/Instruction.C