From fb7ae07506244be16136a423ccd863d776bab64d Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Tue, 21 Sep 2021 23:28:19 +0200 Subject: [PATCH] WIP: some memory problems --- Makefile | 5 +++-- src/model.c | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 65a91ba..a519794 100644 --- a/Makefile +++ b/Makefile @@ -122,8 +122,9 @@ run-gdb: all -ex "set args -C debian/etc -M debian/var/models -U debian/var/users" run-valgrind: all - @valgrind --leak-check=full -s bin/gem-graph-server \ - -C debian/etc -M debian/var/models -U debian/var/users + @valgrind --leak-check=full -s \ + bin/gem-graph-server -C debian/etc -M debian/var/models \ + -U debian/var/users run-both: all @bin/gem-graph-server -C debian/etc -M debian/var/models \ diff --git a/src/model.c b/src/model.c index a587c37..b214baa 100644 --- a/src/model.c +++ b/src/model.c @@ -92,6 +92,8 @@ int ModelUnload(int id) // Resize loaded model list loadedModel = (Model_t**) realloc(loadedModel, loadedModelSize * sizeof(Model_t*)); + + return 0; } /* -------------------------------------------------------------------------- */