Fixed pointer issues.

cert_stack from input parameter was still being referenced by the p7
structure during free.  This was causing the python abort trap.
Setting the p7->cert to NULL fixed the problem.