Skip to content

Commit 831e762

Browse files
committed
* gc.c (ruby_mimmalloc): defined for objects need not rb_objspace,
but should return pointer suitable for ruby_xfree; main vm and main thread. patched by Sokolov Yura. ruby/ruby#79 * internal.h: ditto. * vm.c (Init_BareVM): use ruby_mimmalloc. * ext/dl/cfunc.c: #include <ruby/util.h>. * ext/syslog/syslog.c: use xfree because it is allocated by ruby_strdup. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 8620da6 commit 831e762

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/syslog/syslog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static VALUE mSyslog_close(VALUE self)
4949

5050
closelog();
5151

52-
free((void *)syslog_ident);
52+
xfree((void *)syslog_ident);
5353
syslog_ident = NULL;
5454
syslog_options = syslog_facility = syslog_mask = -1;
5555
syslog_opened = 0;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy