diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2013-07-22 13:54:13 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2013-07-24 21:31:02 -0700 |
commit | e6c11e0be829b0a80a3b020f7f9f56e0c7d0585a (patch) | |
tree | 98aa877aa031736985b1178518a252ae51ac56e5 /src | |
parent | 626037b813cf19d9a0ddde9c4a5a39f8df951478 (diff) |
Don't leak the vdpau_wrapper.cfg file pointer
init_config opens vdpau_wrapper.cfg and reads its contents, but never closes it.
This causes a file descriptor leak if libvdpau is unloaded and reloaded.
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Andy Ritger <aritger@nvidia.com>
Reviewed-by: Josep Torra <josep@fluendo.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vdpau_wrapper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vdpau_wrapper.c b/src/vdpau_wrapper.c index 30c0e0d..a3c23ad 100644 --- a/src/vdpau_wrapper.c +++ b/src/vdpau_wrapper.c @@ -356,6 +356,8 @@ void init_config(void) _disable_flash_pq_bg_color = atoi(param); } } + + fclose(fp); } void init_fixes(void) |