werner committed to gpgme/gpgmeplug

cvs@cvs.gnupg.org cvs@cvs.gnupg.org
Mon, 01 Jul 2002 15:01:51 +0200


Date:	Monday July 1, 2002 @ 15:01
Author:	werner

Update of /cvs/gnupg/gpgme/gpgmeplug
In directory trithemius:/tmp/cvs-serv24573

Modified Files:
	ChangeLog gpgmeplug.c 
Log Message:
* gpgmeplug.c (findCertificates): Reintroduced a free which must
have been removed after my last fix.  This avoids a memory leak
when a fingerprint was not found.  Removed the double loop
increment in the code to release the arrays.
(make_fingerprint): Removed superfluous check on retrun value of
xmalloc.
(safe_free): Removed.  Changed all callers to use a regular free
and at appropriate palces set the free pointer to NULL.  That
safe_free stuff seems to have been copied verbatim from some
Mutt example code I posted.
(storeNewCharPtr): Use xmalloc instead of an unchecked
malloc. Removed superfluous string termination.
(parseAddress): Use xmalloc instead of an unchecked malloc.
(nextAddress): Ditto.
* gpgmeplug.c:  Moved a few helper functions more to the top.
Fixed comment syntax.  Merged a copyright notice somewhere in the
middle of the file with the one at the top.

File: ChangeLog        	Status: Up-to-date
File: no file gpgmeplug.c		Status: Needs Checkout