Corrected a forgotten free

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

View File

@ -122,7 +122,7 @@ 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 bin/gem-graph-server \ @valgrind --leak-check=full -s bin/gem-graph-server \
-C debian/etc -M debian/var/models -U debian/var/users -C debian/etc -M debian/var/models -U debian/var/users
run-both: all run-both: all

View File

@ -291,6 +291,7 @@ void ModelSystemInit(Parameters_t *parameters)
printLog("Loaded model %s\n", newModel->name); printLog("Loaded model %s\n", newModel->name);
} }
} }
free(modelDir);
} }
void ModelSystemDestroy(void) void ModelSystemDestroy(void)

View File

@ -328,7 +328,7 @@ int ParseModelIdentityXML(Model_t *model, Parameters_t *params)
// Allocating space for schema file path // Allocating space for schema file path
schemPath = (char*) calloc(1, strlen(params->modelDir) schemPath = (char*) calloc(1, strlen(params->modelDir)
+ strlen("/schemas/model_x.x.xmls")); + strlen("/schemas/model_ .xmls"));
printLog("Preparsing model %s\n", model->name); printLog("Preparsing model %s\n", model->name);