fix: memory leaks

This commit is contained in:
2025-06-06 19:39:55 +02:00
parent 04a102a7bb
commit b22ae6b2cc
3 changed files with 7 additions and 2 deletions

View File

@@ -125,6 +125,7 @@ static int fn(const char *fpath, const struct stat *sb, int typeflag) {
// This code is designed to be run purely single threaded
struct Vector get_avaliable_sessions() {
struct Vector sessions = vec_new();
vec_reserve(&sessions, 8);
cb_sessions = &sessions;
for (size_t i = 0; i < (sizeof(sources) / sizeof(sources[0])); i++) {