Fix: fd leak on trace close
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 17 Oct 2012 15:53:52 +0000 (11:53 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 17 Oct 2012 15:53:52 +0000 (11:53 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/ctf.c

index b07c45c3d8de3b334577af85569fa099f373d445..d60b4353fc2c0d9bbdaaac45fbfb7e1475dd3b1d 100644 (file)
@@ -1911,6 +1911,7 @@ void ctf_close_trace(struct trace_descriptor *tdp)
                }
        }
        ctf_destroy_metadata(td);
+       close(td->dirfd);
        closedir(td->dir);
        g_free(td);
 }
This page took 0.034663 seconds and 4 git commands to generate.