ObjXMPP  Check-in [547b55739a]

Overview
Comment:Prevent a possible leak.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 547b55739a998379b152d81d0c0f8c6a26d3c9c09ae6de2fc5aa110306f6790f
User & Date: js on 2011-09-09 14:42:39
Other Links: manifest | tags
Context
2011-09-09
22:10
Fix broken enum used as a bitmap. check-in: 34584bd493 user: js tags: trunk
14:42
Prevent a possible leak. check-in: 547b55739a user: js tags: trunk
01:42
Optimize HMAC implementation check-in: bfe0678566 user: florob@babelmonkeys.de tags: trunk
Changes

Modified src/XMPPSCRAMAuth.m from [3d74f25717] to [125d8f4082].

405
406
407
408
409
410
411
412

413
414
415
416
417
418
419
420
421

422
423
424
425

426
427
428
429
430
431
432
405
406
407
408
409
410
411

412
413
414
415
416
417
418
419
420
421
422
423

424

425
426
427
428
429
430
431
432







-
+









+

-

-
+








		hashI = [[[hashType alloc] init] autorelease];
		[hashI updateWithBuffer: (char*)kI
				 length: blockSize];
		[hashI updateWithBuffer: [data cArray]
				 length: [data itemSize] * [data count]];

		hashO = [[hashType alloc] init];
		hashO = [[[hashType alloc] init] autorelease];
		[hashO updateWithBuffer: (char*)kO
				 length: blockSize];
		[hashO updateWithBuffer: (char*)[hashI digest]
				 length: [hashType digestSize]];
	} @finally {
		[self freeMemory: kI];
		[self freeMemory: kO];
	}

	[hashO retain];
	[pool release];
	[hashO autorelease];

	return [hashO digest];
	return [[hashO autorelease] digest];
}

- (OFDataArray*)XMPP_hiWithData: (OFDataArray *)str
			   salt: (OFDataArray *)salt_
		 iterationCount: (intmax_t)i
{
	OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];