From dcc49b4e70bf81fef1d54eaef0f69c82ac011de5 Mon Sep 17 00:00:00 2001 From: Zhang Yi Date: Tue, 18 Sep 2012 16:30:06 +0800 Subject: [PATCH] fix potential leak --- OpenUDID.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenUDID.m b/OpenUDID.m index 3100944..aab285c 100644 --- a/OpenUDID.m +++ b/OpenUDID.m @@ -188,6 +188,8 @@ + (NSString*) _generateFreshOpenUDID { result[8], result[9], result[10], result[11], result[12], result[13], result[14], result[15], (NSUInteger)(arc4random() % NSUIntegerMax)]; + + CFRelease(cfstring); } // Call to other developers in the Open Source community: