+2002-07-13 Bruno Haible <bruno@clisp.org>
+
+ * dcigettext.c (freea): New macro.
+ (FREE_BLOCKS): Free also the registered blocks.
+ (DCIGETTEXT): Free the 'search' variable.
+ Reported by Andreas Fischer <a.fischer@asentics.de>.
+
2002-06-13 Bruno Haible <bruno@clisp.org>
Make absolute pathnames inside $LANGUAGE work.
some additional code emulating it. */
#ifdef HAVE_ALLOCA
/* Nothing has to be done. */
+# define freea(p) /* nothing */
# define ADD_BLOCK(list, address) /* nothing */
# define FREE_BLOCKS(list) /* nothing */
#else
while (list != NULL) { \
struct block_list *old = list; \
list = list->next; \
+ free (old->address); \
free (old); \
} \
} while (0)
# undef alloca
# define alloca(size) (malloc (size))
+# define freea(p) free (p)
#endif /* have alloca */
search->category = category;
foundp = (struct known_translation_t **) tfind (search, &root, transcmp);
+ freea (search);
if (foundp != NULL && (*foundp)->counter == _nl_msg_cat_cntr)
{
/* Now deal with plural. */