From 1e4e8ed27ae95096255283e92a75738bc7e296e5 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 25 Sep 2007 15:38:21 +0000 Subject: Initial doxygen documentation for rc.h and einfo.h. Plus some header clean ups. --- src/runscript.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/runscript.c') diff --git a/src/runscript.c b/src/runscript.c index 200d8d88..550653ab 100644 --- a/src/runscript.c +++ b/src/runscript.c @@ -307,6 +307,7 @@ static void cleanup (void) free (applet); free (prefix); free (service); + free (softlevel); } static int write_prefix (const char *buffer, size_t bytes, bool *prefixed) { @@ -1029,7 +1030,7 @@ int runscript (int argc, char **argv) } #endif - if ((softlevel = getenv ("RC_SOFTLEVEL")) == NULL) { + if ((softlevel = rc_xstrdup (getenv ("RC_SOFTLEVEL"))) == NULL) { /* Ensure our environment is pure Also, add our configuration to it */ tmplist = rc_make_env(); -- cgit v1.2.3