From 79863ea468d33f234918f3d4f18dd24bc6668a87 Mon Sep 17 00:00:00 2001 From: joergs Date: Thu, 7 Jun 2001 14:46:25 +0000 Subject: [PATCH] Missing make_path() added for re_filterfile. --- loadcfg.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/loadcfg.c b/loadcfg.c index d92dfa19..a2858b82 100644 --- a/loadcfg.c +++ b/loadcfg.c @@ -1,4 +1,5 @@ -const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.12 2001/06/05 20:04:09 jongfoster Exp $"; +/* vim:ts=3: */ +const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.13 2001/06/05 22:33:54 jongfoster Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/loadcfg.c,v $ @@ -35,6 +36,11 @@ const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.12 2001/06/05 20:04:09 jongfoster * * Revisions : * $Log: loadcfg.c,v $ + * Revision 1.13 2001/06/05 22:33:54 jongfoster + * + * Fixed minor memory leak. + * Also now uses make_path to prepend the pathnames. + * * Revision 1.12 2001/06/05 20:04:09 jongfoster * Now uses _snprintf() in place of snprintf() under Win32. * @@ -573,7 +579,7 @@ struct configuration_spec * load_config(void) #ifdef PCRS case hash_re_filterfile : freez((char *)config->re_filterfile); - config->re_filterfile = strdup(arg); + config->re_filterfile = make_path(config->confdir, arg); continue; #endif /* def PCRS */ -- 2.39.2