Skip to content

Commit e60b00a

Browse files
authored
Merge pull request #542 from andyundso/undefined-alloc
Mark `alloc` as undefined for `TinyTds::Result`
2 parents fd0877b + a63efbe commit e60b00a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* Add Ruby 3.0 to the cross compile list
44
* Fix segfault when asking if client was dead after closing it. Fixes #519.
5+
* Mark `alloc` function as undefined on `TinyTds::Result`. Fixes #515.
56

67
## 2.1.5
78

ext/tiny_tds/result.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ void init_tinytds_result() {
584584
cDate = rb_const_get(rb_cObject, rb_intern("Date"));
585585
/* Define TinyTds::Result */
586586
cTinyTdsResult = rb_define_class_under(mTinyTds, "Result", rb_cObject);
587+
rb_undef_alloc_func(cTinyTdsResult);
587588
/* Define TinyTds::Result Public Methods */
588589
rb_define_method(cTinyTdsResult, "fields", rb_tinytds_result_fields, 0);
589590
rb_define_method(cTinyTdsResult, "each", rb_tinytds_result_each, -1);

0 commit comments

Comments
 (0)