adium 5302:da20d0628367: Patch from kbotc to fix some leaks.
commits at adium.im
commits at adium.im
Thu Feb 7 22:24:50 UTC 2013
details: http://hg.adium.im/adium/rev/da20d0628367
revision: 5302:da20d0628367
branch: adium-1.6
author: Frank Dowsett <wixardy at adium.im>
date: Thu Feb 07 17:24:37 2013 -0500
Patch from kbotc to fix some leaks.
diffs (34 lines):
diff -r 5388d630ef21 -r da20d0628367 Frameworks/AIUtilities Framework/Source/AIKeychain.m
--- a/Frameworks/AIUtilities Framework/Source/AIKeychain.m Tue Feb 05 20:10:30 2013 -0500
+++ b/Frameworks/AIUtilities Framework/Source/AIKeychain.m Thu Feb 07 17:24:37 2013 -0500
@@ -873,7 +873,7 @@
.tag = tags,
.format = formats,
};
-
+ SecKeychainItemFreeContent( NULL, passwordBytes );
err = SecKeychainItemCopyAttributesAndData(item,
&info,
/* itemClass */ NULL,
diff -r 5388d630ef21 -r da20d0628367 Other/Adium Spotlight Importer/GetMetadataForHTMLLog-Additions.m
--- a/Other/Adium Spotlight Importer/GetMetadataForHTMLLog-Additions.m Tue Feb 05 20:10:30 2013 -0500
+++ b/Other/Adium Spotlight Importer/GetMetadataForHTMLLog-Additions.m Thu Feb 07 17:24:37 2013 -0500
@@ -49,8 +49,8 @@
if (length && (buf[i] == '+')) {
++i;
}
- if (i >= length) return NO;
- if ((buf[i] < '0') || (buf[i] > '9')) return NO;
+ if (i >= length) { free(buf); return NO; }
+ if ((buf[i] < '0') || (buf[i] > '9')) { free(buf); return NO; }
unsigned total = 0;
while (i < length) {
@@ -64,6 +64,7 @@
}
[self setScanLocation:i];
*unsignedIntValue = total;
+ free(buf);
return YES;
}
More information about the commits
mailing list