WIP: some memory problems

This commit is contained in:
Adrien Bourmault 2021-09-21 23:28:19 +02:00
parent a3aa232121
commit fb7ae07506
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
2 changed files with 5 additions and 2 deletions

View File

@ -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 \

View File

@ -92,6 +92,8 @@ int ModelUnload(int id)
// Resize loaded model list
loadedModel =
(Model_t**) realloc(loadedModel, loadedModelSize * sizeof(Model_t*));
return 0;
}
/* -------------------------------------------------------------------------- */