[macruby-changes] [4424] MacRuby/trunk/bs.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Aug 11 18:23:11 PDT 2010
Revision: 4424
http://trac.macosforge.org/projects/ruby/changeset/4424
Author: lsansonetti at apple.com
Date: 2010-08-11 18:23:10 -0700 (Wed, 11 Aug 2010)
Log Message:
-----------
remove extra frees
Modified Paths:
--------------
MacRuby/trunk/bs.c
Modified: MacRuby/trunk/bs.c
===================================================================
--- MacRuby/trunk/bs.c 2010-08-11 22:26:06 UTC (rev 4423)
+++ MacRuby/trunk/bs.c 2010-08-12 01:23:10 UTC (rev 4424)
@@ -1111,11 +1111,9 @@
// Function ptr return type
strlcpy(tmp_type, func_ptr->retval->type, sizeof(tmp_type));
- free(func_ptr->retval->type);
// Function ptr args
for (i = 0; i < func_ptr->args_count; i++) {
strlcat(tmp_type, fptr_args[i].type, sizeof(tmp_type));
- free(fptr_args[i].type);
}
// Clear the final type string
memset(new_type, 0, sizeof(new_type));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100811/6856b51f/attachment-0001.html>
More information about the macruby-changes
mailing list