diff options
| author | Albert Cervin <albert@acervin.com> | 2024-03-07 21:56:36 +0100 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2024-03-07 21:56:36 +0100 |
| commit | cd87d88a930a0b58cfca38678d2e757491c17b26 (patch) | |
| tree | 412352d2ae67b6e64df6320d64a3cfeda0194b88 /src/dged/buffer.c | |
| parent | a13750209b3836a4a6a16a7ba881625f397f160f (diff) | |
| download | dged-cd87d88a930a0b58cfca38678d2e757491c17b26.tar.gz dged-cd87d88a930a0b58cfca38678d2e757491c17b26.tar.xz dged-cd87d88a930a0b58cfca38678d2e757491c17b26.zip | |
Fix asan errors
It found some really nasty ones :)
Diffstat (limited to 'src/dged/buffer.c')
| -rw-r--r-- | src/dged/buffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dged/buffer.c b/src/dged/buffer.c index d25297f..ab86dc6 100644 --- a/src/dged/buffer.c +++ b/src/dged/buffer.c @@ -837,6 +837,9 @@ void buffer_find(struct buffer *buffer, const char *pattern, *matches = VEC_ENTRIES(&data.matches); *nmatches = VEC_SIZE(&data.matches); + + VEC_DISOWN_ENTRIES(&data.matches); + VEC_DESTROY(&data.matches); } struct location buffer_copy(struct buffer *buffer, struct region region) { |
