symlite: Don't use a delete pointer
authorJosh Stone <jistone@redhat.com>
Thu, 21 Nov 2013 00:47:44 +0000 (16:47 -0800)
committerJosh Stone <jistone@redhat.com>
Sat, 14 Dec 2013 02:07:47 +0000 (18:07 -0800)
commitda7db317c328d506db91746652b0d782e3847c7d
tree45fb44ea65236c23afeec76690dfed37e2f44be7
parent33d0fd20470d67be289b6270f12194812c530449
symlite: Don't use a delete pointer

In SymElfFactory::closeSymbolReader, if 'ser' isn't in open_symelfs,
then it is deleted, so the function should return without using 'ser'
any more.

Reported by Coverity as USE_AFTER_FREE.
symlite/src/SymLite-elf.C