summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/include/ads.h2
-rw-r--r--source/libads/ads_struct.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/source/include/ads.h b/source/include/ads.h
index c01a1055b2d..85c87bfeee0 100644
--- a/source/include/ads.h
+++ b/source/include/ads.h
@@ -58,6 +58,8 @@ typedef struct {
char *client_site_name;
time_t current_time;
int tried_closest_dc;
+ char *schema_path;
+ char *config_path;
} config;
} ADS_STRUCT;
diff --git a/source/libads/ads_struct.c b/source/libads/ads_struct.c
index b01e0879ef9..c66d4e84e8e 100644
--- a/source/libads/ads_struct.c
+++ b/source/libads/ads_struct.c
@@ -159,6 +159,8 @@ void ads_destroy(ADS_STRUCT **ads)
SAFE_FREE((*ads)->config.ldap_server_name);
SAFE_FREE((*ads)->config.server_site_name);
SAFE_FREE((*ads)->config.client_site_name);
+ SAFE_FREE((*ads)->config.schema_path);
+ SAFE_FREE((*ads)->config.config_path);
ZERO_STRUCTP(*ads);