diff options
Diffstat (limited to 'hal-0.5.11-patches/0023-hal-acl-tool-don-t-free-strings-that-are-not-suppos.patch')
-rw-r--r-- | hal-0.5.11-patches/0023-hal-acl-tool-don-t-free-strings-that-are-not-suppos.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/hal-0.5.11-patches/0023-hal-acl-tool-don-t-free-strings-that-are-not-suppos.patch b/hal-0.5.11-patches/0023-hal-acl-tool-don-t-free-strings-that-are-not-suppos.patch new file mode 100644 index 00000000..d4ee8891 --- /dev/null +++ b/hal-0.5.11-patches/0023-hal-acl-tool-don-t-free-strings-that-are-not-suppos.patch @@ -0,0 +1,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 + |