mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 07:33:01 +00:00 
			
		
		
		
	Fix memory leak caused by casting error.
janet_abstract_end improperly modified a gc tag.
This commit is contained in:
		| @@ -35,7 +35,7 @@ void *janet_abstract_begin(const JanetAbstractType *atype, size_t size) { | |||||||
| } | } | ||||||
|  |  | ||||||
| void *janet_abstract_end(void *x) { | void *janet_abstract_end(void *x) { | ||||||
|     janet_gc_settype((void *)(janet_gc_header(x)), JANET_MEMORY_ABSTRACT); |     janet_gc_settype((void *)(janet_abstract_head(x)), JANET_MEMORY_ABSTRACT); | ||||||
|     return x; |     return x; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Calvin Rose
					Calvin Rose