WIP: some memory problems
This commit is contained in:
parent
a3aa232121
commit
fb7ae07506
5
Makefile
5
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 \
|
||||
|
|
|
@ -92,6 +92,8 @@ int ModelUnload(int id)
|
|||
// Resize loaded model list
|
||||
loadedModel =
|
||||
(Model_t**) realloc(loadedModel, loadedModelSize * sizeof(Model_t*));
|
||||
|
||||
return 0;
|
||||
}
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
|
|
Loading…
Reference in New Issue