fix some double free, memory leaks, and seg faults

This commit is contained in:
2025-06-14 19:41:31 +01:00
parent 3a19b1519f
commit 3a1fc91352
16 changed files with 266 additions and 50 deletions

View File

@@ -8,7 +8,7 @@
#include <stdint.h>
typedef enum { OP_LOAD_CONST = 255, OP_DECLARE, OP_LOAD_NULL, OP_JUMP } OperationType;
typedef enum { TYPE_OP_STRING = 255 } types;
typedef enum { TYPE_OP_STRING = 255, TYPE_OP_NUMBER } types;
typedef struct {
void *data;