gcc: preserve CXXFLAGS_FOR_TARGET
[buildroot-gz.git] / package / powertop / 0001-autotune-fix-use-after-close.patch
blobf2b3dff1023164465bcd929f9a16ff6f67309b1f
1 Patch pulled from https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/powertop&id=37469c47b885c50365f57044e4ad72e0e3512b91
3 Fixes a use-after-close bug in create_all_devfreq_devices().
5 Signed-off-by: Steven Noonan <steven@uplinklabs.net>
7 --- a/src/devices/devfreq.cpp
8 +++ b/src/devices/devfreq.cpp
9 @@ -247,6 +247,7 @@ void create_all_devfreq_devices(void)
10 fprintf(stderr, "Devfreq not enabled\n");
11 is_enabled = false;
12 closedir(dir);
13 + dir = NULL;
14 return;