[MacRuby] #858: "rake spec:ci" crashes.
MacRuby
ruby-noreply at macosforge.org
Thu Aug 26 01:35:31 PDT 2010
#858: "rake spec:ci" crashes.
----------------------------------+-----------------------------------------
Reporter: watson1978@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords: 0.7-blocker
----------------------------------+-----------------------------------------
Comment(by watson1978@…):
Leak in the following parts?
{{{
#!diff
diff --git a/bs.c b/bs.c
index 41d1720..d690839 100644
--- a/bs.c
+++ b/bs.c
@@ -454,6 +454,7 @@ bs_parser_parse(bs_parser_t *parser, const char *path,
/* check if the given framework path has not been loaded already */
cf_path =
CFStringCreateWithFileSystemRepresentation(kCFAllocatorMalloc,
path);
+ CFMakeCollectable(cf_path);
for (unsigned i = 0, count = CFArrayGetCount(parser->loaded_paths);
i < count; i++) {
CFStringRef s = CFArrayGetValueAtIndex(parser->loaded_paths, i);
@@ -1269,7 +1270,6 @@ bails:
}
}
}
- CFRelease(cf_path);
if (success && options == BS_PARSE_OPTIONS_LOAD_DYLIBS &&
framework_path != N
char buf[PATH_MAX];
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/858#comment:20>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list