我有以下几处(从Amplus Low Level file Management-Remov Aliases)
NSString *resolvedPath = nil;
...
resolvedPath = (NSString*)CFURLCopyFileSystemPath(resolvedUrl, kCFURLPOSIXPathStyle);
...
return resolvedPath;
建造和安装; 分析产生以下警告:
194:3 Potential leak (when using garbage collection) of an object allocated on line 187 and stored into resolvedPath
详细情况如下:
187:32 Call to function CFURLCopyFileSystemPath returns a Core Foundation object with a +1 retain count (owning reference). Core Foundation objects are not automatically garbage collected
194:3 Object returned to caller as an owning reference (single retain count transferred to caller)
194:3 Object allocated on line 187 and stored into resolvedPath and returned from method getTarget: is potentially leaked when using garbage collection. Callers of this method do not expect a returned object with a +1 retain count since they expect the object to be managed by the garbage collector
我是否有记忆泄漏?
如果是这样,我如何确定?
如果我不怎么防止警告?