components/avahi/patches/16-memory-crash.patch
author John Beck <John.Beck@Oracle.COM>
Thu, 14 Jan 2016 14:20:29 -0800
changeset 5280 a1d5d3816967
parent 5257 0da26ce015ab
permissions -rw-r--r--
22536112 SUNWSblimCimClient needs to be obsoleted

Source: Desktop consolidation
Patch Comment: type:bug bugster:6804284

--- avahi-0.6.30/avahi-utils/stdb.c.orig	2011-06-08 10:28:42.651208301 +0100
+++ avahi-0.6.30/avahi-utils/stdb.c	2011-06-08 10:32:25.750739026 +0100
@@ -136,8 +136,9 @@
 
     avahi_free(buffer);
     buffer = avahi_strndup(data.dptr, data.dsize);
+#ifdef HAVE_GDBM
     free(data.dptr);
-
+#endif
     return buffer;
 
 fail:
@@ -199,7 +200,9 @@
             return NULL;
 
         enum_key = avahi_strndup(key.dptr, key.dsize);
+#ifdef HAVE_GDBM
         free(key.dptr);
+#endif
 
         if (!strchr(enum_key, '['))
             return enum_key;