Skip to content

Commit d80cc65

Browse files
committed
fix undefined behavior
1 parent 27285c3 commit d80cc65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

luaApp/src/rec/luascriptRecord.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ static int createTable(lua_State* state, DBLINK* field, short field_type, long*
331331
lua_rawseti(state, -2, elem + 1);
332332
}
333333

334-
delete data;
334+
delete[] data;
335335
return 0;
336336
}
337337

0 commit comments

Comments
 (0)