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"
|
-ex "set args -C debian/etc -M debian/var/models -U debian/var/users"
|
||||||
|
|
||||||
run-valgrind: all
|
run-valgrind: all
|
||||||
@valgrind --leak-check=full -s bin/gem-graph-server \
|
@valgrind --leak-check=full -s \
|
||||||
-C debian/etc -M debian/var/models -U debian/var/users
|
bin/gem-graph-server -C debian/etc -M debian/var/models \
|
||||||
|
-U debian/var/users
|
||||||
|
|
||||||
run-both: all
|
run-both: all
|
||||||
@bin/gem-graph-server -C debian/etc -M debian/var/models \
|
@bin/gem-graph-server -C debian/etc -M debian/var/models \
|
||||||
|
|
|
@ -92,6 +92,8 @@ int ModelUnload(int id)
|
||||||
// Resize loaded model list
|
// Resize loaded model list
|
||||||
loadedModel =
|
loadedModel =
|
||||||
(Model_t**) realloc(loadedModel, loadedModelSize * sizeof(Model_t*));
|
(Model_t**) realloc(loadedModel, loadedModelSize * sizeof(Model_t*));
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue