Corrected a forgotten free
This commit is contained in:
parent
b2a3508f08
commit
a3aa232121
2
Makefile
2
Makefile
|
@ -122,7 +122,7 @@ run-gdb: all
|
|||
-ex "set args -C debian/etc -M debian/var/models -U debian/var/users"
|
||||
|
||||
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
|
||||
|
||||
run-both: all
|
||||
|
|
|
@ -291,6 +291,7 @@ void ModelSystemInit(Parameters_t *parameters)
|
|||
printLog("Loaded model %s\n", newModel->name);
|
||||
}
|
||||
}
|
||||
free(modelDir);
|
||||
}
|
||||
|
||||
void ModelSystemDestroy(void)
|
||||
|
|
|
@ -327,8 +327,8 @@ int ParseModelIdentityXML(Model_t *model, Parameters_t *params)
|
|||
};
|
||||
|
||||
// Allocating space for schema file path
|
||||
schemPath = (char*)calloc(1, strlen(params->modelDir)
|
||||
+ strlen("/schemas/model_x.x.xmls"));
|
||||
schemPath = (char*) calloc(1, strlen(params->modelDir)
|
||||
+ strlen("/schemas/model_ .xmls"));
|
||||
|
||||
printLog("Preparsing model %s\n", model->name);
|
||||
|
||||
|
|
Loading…
Reference in New Issue