and don't loop over tmp_dn and double free the first item.
Spotted by Bernhard Herzog.
+2002-07-03 Werner Koch <wk@gnupg.org>
+
+ * gpgmeplug.c (nextCertificate): Actually free the entire array
+ and don't loop over tmp_dn and double free the first item.
+ Spotted by Bernhard Herzog.
+
2002-07-01 Werner Koch <wk@gnupg.org>
* gpgmeplug.c (findCertificates): Reintroduced a free which must
/*it->info.issuer = xstrdup(s);*/
it->info.issuer = reorder_dn( issuer_dn );
while( tmp_dn->key ) {
- free( issuer_dn->key );
- free( issuer_dn->value );
+ free( tmp_dn->key );
+ free( tmp_dn->value );
++tmp_dn;
}
free( issuer_dn );