From 9f32dadc582fea42002a77f90521ec8dfde2189a Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Fri, 10 Feb 2017 10:45:52 +0100 Subject: ipcpd: Fix leaking name in cacep_info --- src/ipcpd/normal/fmgr.c | 1 + src/ipcpd/normal/gam.c | 2 ++ 2 files changed, 3 insertions(+) (limited to 'src') diff --git a/src/ipcpd/normal/fmgr.c b/src/ipcpd/normal/fmgr.c index b958abfa..31c83ac5 100644 --- a/src/ipcpd/normal/fmgr.c +++ b/src/ipcpd/normal/fmgr.c @@ -344,6 +344,7 @@ void fmgr_fini() flow_dealloc(flow->fd); ipcp_flow_get_qoscube(flow->fd, &cube); flow_set_del(fmgr.nm1_set[cube], flow->fd); + free(flow->info->name); free(flow->info); free(flow); } 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; } -- cgit v1.2.3