summaryrefslogtreecommitdiffstats
path: root/sysutils/hal/files/patch-hald_freebsd_hf-volume.c
blob: 4fb0d95b4e85379f98b28117cb62bb85858f1634 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- hald/freebsd/hf-volume.c.orig   2009-12-23 14:01:00.000000000 -0500
+++ hald/freebsd/hf-volume.c    2009-12-23 14:01:25.000000000 -0500
@@ -86,9 +86,12 @@ hf_volume_resolve_fuse (const char *spec
         {
           if (strcmp(fields[0], special) == 0)
        {
+         char *ret;
+
+         ret = g_strdup(fields[1]);
          g_strfreev(fields);
          g_strfreev(lines);
-         return g_strdup(fields[1]);
+         return ret;
        }
    }
       g_strfreev(fields);