Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
better way to fix cfunc.c
  • Loading branch information
funny-falcon committed Jan 8, 2012
commit 982eef3be449c69d2d70ab25ccea4dab1446c8db
3 changes: 2 additions & 1 deletion ext/dl/cfunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <ruby.h>
#include <errno.h>
#include <ruby/util.h>
#include "dl.h"

VALUE rb_cDLCFunc;
Expand Down Expand Up @@ -55,7 +56,7 @@ dlcfunc_free(void *ptr)
{
struct cfunc_data *data = ptr;
if( data->name ){
free(data->name);
xfree(data->name);
}
xfree(data);
}
Expand Down