summaryrefslogtreecommitdiff
path: root/src/ipcpd/ipcp-data.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-08-16 10:45:31 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-08-16 10:45:31 +0200
commitfbc0b71d3947cb6047e3e710d606ffc6a39778bc (patch)
tree0a5fead93b09bf15eae5851e4b022f05df3fdae5 /src/ipcpd/ipcp-data.c
parent44cc6aaa41d88dc978a087178fd74a1c2dba70fd (diff)
parent54b1ba99e15660e2e12dbc564f7e7428b5440446 (diff)
downloadouroboros-fbc0b71d3947cb6047e3e710d606ffc6a39778bc.tar.gz
ouroboros-fbc0b71d3947cb6047e3e710d606ffc6a39778bc.zip
Merged in dstaesse/ouroboros/be-fix-normal (pull request #210)
ipcpd: Fix bootstrap with api_bind
Diffstat (limited to 'src/ipcpd/ipcp-data.c')
-rw-r--r--src/ipcpd/ipcp-data.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ipcpd/ipcp-data.c b/src/ipcpd/ipcp-data.c
index a2fef08c..593baeba 100644
--- a/src/ipcpd/ipcp-data.c
+++ b/src/ipcpd/ipcp-data.c
@@ -111,6 +111,7 @@ struct ipcp_data * ipcp_data_init(struct ipcp_data * dst,
return NULL;
dst->type = ipcp_type;
+ dst->dif_name = NULL;
/* init the lists */
INIT_LIST_HEAD(&dst->registry);
@@ -157,6 +158,9 @@ void ipcp_data_destroy(struct ipcp_data * data)
clear_registry(data);
clear_directory(data);
+ if (data->dif_name != NULL)
+ free(data->dif_name);
+
pthread_mutex_unlock(&data->dir_lock);
pthread_mutex_unlock(&data->reg_lock);