summaryrefslogtreecommitdiff
path: root/src/irmd/registry.c
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2017-02-03 20:35:05 +0100
committerdimitri staessens <[email protected]>2017-02-03 20:35:05 +0100
commit29fe780c782b74f516a47521297848095a8f5ede (patch)
tree3bfa80bf2983231bb9945d90ea81d18021d622cc /src/irmd/registry.c
parent28224928bd4706515afc2885d16ca45389fc81ee (diff)
downloadouroboros-29fe780c782b74f516a47521297848095a8f5ede.tar.gz
ouroboros-29fe780c782b74f516a47521297848095a8f5ede.zip
irmd: Fix memleak in registry
Diffstat (limited to 'src/irmd/registry.c')
-rw-r--r--src/irmd/registry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/irmd/registry.c b/src/irmd/registry.c
index 35c17069..7e21375e 100644
--- a/src/irmd/registry.c
+++ b/src/irmd/registry.c
@@ -165,6 +165,7 @@ static void reg_entry_del_local_from_dif(struct reg_entry * e,
struct reg_dif * d = list_entry(p, struct reg_dif, next);
if (!strcmp(dif_name, d->dif_name)) {
list_del(&d->next);
+ free(d->dif_name);
free(d);
}
}