[CICN-27] Fix invalid pointer dealloc 38/24238/1
authorOlivier Roques <[email protected]>
Wed, 8 Jan 2020 12:04:48 +0000 (13:04 +0100)
committerOlivier Roques <[email protected]>
Wed, 8 Jan 2020 12:04:48 +0000 (13:04 +0100)
commite0bc3a68a2dcf7fca2ae0a56a1cc628556b354bd
treef36d9d07c0a17bf4449e8218b725ccc4d98c3818
parentf5fe9c5b105feb2ba191a0af46d1633d0a2673d4
[CICN-27] Fix invalid pointer dealloc

There is a deallocation of an invalid pointer in the destructor
of an in-memory verifier object. This function is called by the
destructor of consumer socket which fails because of that. The
bug is visible only on Ubuntu 16.04.

The bug was introduced in CICN-26 as an artifact of attempts to
fix memory leaks in Android. There is no good reason to keep the
changes causing the problem and the concerned lines can be safely
removed.

Signed-off-by: Olivier Roques <[email protected]>
Change-Id: Ibcde7dd7510d76f5aa91e5967a4261ec7eb49108
libparc/parc/security/parc_InMemoryVerifier.c