summaryrefslogtreecommitdiff
path: root/modules/devices
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2019-08-03 13:15:12 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2019-08-10 16:47:25 -0700
commita071cf575cafc3d8c15e4886fd65b8763086016f (patch)
treee60047d213e2159cdd7980bc2ca3b004e5bbfd14 /modules/devices
parent4ebe1d6b2bc615acbe28aa8defdeda2c71d1c57f (diff)
auto_free: update with auto_free_on_exit(), use to free arm_ids_file in arm_data.c
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices')
-rw-r--r--modules/devices/arm/arm_data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/devices/arm/arm_data.c b/modules/devices/arm/arm_data.c
index 58779c08..179771dc 100644
--- a/modules/devices/arm/arm_data.c
+++ b/modules/devices/arm/arm_data.c
@@ -134,7 +134,7 @@ void find_arm_ids_file() {
int n;
for(n = 0; file_search_order[n]; n++) {
if (!access(file_search_order[n], R_OK))
- arm_ids_file = file_search_order[n];
+ arm_ids_file = (gchar*) auto_free_on_exit( file_search_order[n] );
else
g_free(file_search_order[n]);
}