vtcode 0.123.7

A Rust-based terminal coding agent with modular architecture supporting multiple LLM providers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
id: no-malloc-free
language: C
severity: warning
message: Manual `malloc`/`free` is error-prone; consider structured allocation patterns.
note: |
  Manual memory management with `malloc` and `free` is a common source of
  memory leaks, double-frees, and use-after-free bugs. Consider using
  arena allocators, ownership-tracking patterns, or compiler sanitizers
  to reduce risk.
rule:
  any:
    - pattern: malloc($$$)
    - pattern: calloc($$$)
    - pattern: realloc($$$)
    - pattern: free($$$)
files:
  - "**/*.c"
  - "**/*.h"