summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/gam.c
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2017-02-10 10:16:05 +0000
committerSander Vrijders <[email protected]>2017-02-10 10:16:05 +0000
commit9e138e59ce613fd258b6c22d047f67dd2b0bb1e7 (patch)
treee03e7a971e027392faf870f0a3b27f011060398c /src/ipcpd/normal/gam.c
parent4051a5afbfc92873af44d47ae6613d7bd17f7433 (diff)
parent9f32dadc582fea42002a77f90521ec8dfde2189a (diff)
downloadouroboros-9e138e59ce613fd258b6c22d047f67dd2b0bb1e7.tar.gz
ouroboros-9e138e59ce613fd258b6c22d047f67dd2b0bb1e7.zip
Merged in dstaesse/ouroboros/be-cacep (pull request #369)
ipcpd: Fix leaking name in cacep_info
Diffstat (limited to 'src/ipcpd/normal/gam.c')
-rw-r--r--src/ipcpd/normal/gam.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ipcpd/normal/gam.c b/src/ipcpd/normal/gam.c
index 36025f85..f80efe47 100644
--- a/src/ipcpd/normal/gam.c
+++ b/src/ipcpd/normal/gam.c
@@ -257,12 +257,14 @@ int gam_flow_alloc(struct gam * instance,
if (instance->ops->accept_flow(instance->ops_o, qs, info)) {
flow_dealloc(fd);
+ free(info->name);
free(info);
return 0;
}
if (add_ga(instance, fd, qs, info)) {
log_err("Failed to add GA to graph adjacency manager list.");
+ free(info->name);
free(info);
return -1;
}