Improve mag_conn memory handling
authorSimo Sorce <simo@redhat.com>
Tue, 16 Jun 2015 13:36:34 +0000 (09:36 -0400)
committerSimo Sorce <simo@redhat.com>
Tue, 16 Jun 2015 17:26:35 +0000 (13:26 -0400)
Create a pool just for the mag_conn structure, so that we can clear up
all the memory used when a reset is necessary.
This also fixes a segfault introduced by a previous patch where we mistakenly
zeroed the whole structure including the memory pool pointer, which needs to
be preserved.

Closes #40

Signed-off-by: Simo Sorce <simo@redhat.com>

No differences found