aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/aft.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/aft.c b/src/aft.c
index 9500368..19510af 100644
--- a/src/aft.c
+++ b/src/aft.c
@@ -251,6 +251,7 @@ int afbBindingEntry(afb_api_t apiHandle) {
char *dirList, *afTestRootDir, *path;
const char *envDirList = NULL, *configPath = NULL, *bindingRootDir = NULL;
json_object *settings = afb_api_settings(apiHandle), *bpath = NULL;
+ CtlConfigT *ctrlConfig = NULL;
AFB_API_DEBUG(apiHandle, "Controller in afbBindingEntry");
@@ -290,6 +291,8 @@ int afbBindingEntry(afb_api_t apiHandle) {
return ERROR;
}
+ ctrlConfig = CtrlLoadConfigFile(apiHandle, configPath);
free(afTestRootDir);
- return CtrlCreateApi(apiHandle, CtrlLoadConfigFile(apiHandle, configPath));
+ free(dirList);
+ return CtrlCreateApi(apiHandle, ctrlConfig);
}