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"
|
-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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue