aboutsummaryrefslogtreecommitdiff
blob: d4ee8891d77eaf5fa00035df2561ebe5cd71d1f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 469e8e3e77b9e12c5d3a6d42513df2d81718a9c6 Mon Sep 17 00:00:00 2001
From: Ludwig Nussel <ludwig.nussel@suse.de>
Date: Mon, 22 Sep 2008 20:11:36 -0700
Subject: [PATCH 23/48] hal-acl-tool: don't free strings that are not supposed to be freed

Fon't free strings that are not supposed to be freed (in hal-acl-tool).
---
 tools/hal-acl-tool.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/tools/hal-acl-tool.c b/tools/hal-acl-tool.c
index d01a069..db17374 100644
--- a/tools/hal-acl-tool.c
+++ b/tools/hal-acl-tool.c
@@ -1085,18 +1085,12 @@ acl_reconfigure_all (void)
 
 		if (device == NULL) {
 			printf ("%d: access_control.file not set for '%s'\n", getpid (), udis[i]);
-                        if (type != NULL)
-                                libhal_free_string (type);
                         acl_for_device_free (afd);
                         goto skip;
 		}
 
 		if (type == NULL) {
 			printf ("%d: access_control.type not set for '%s'\n", getpid (), udis[i]);
-                        if (device != NULL)
-                                libhal_free_string (device);
-                        if (type != NULL)
-                                libhal_free_string (type);
                         acl_for_device_free (afd);
                         goto skip;
 		}
-- 
1.6.1.2