summaryrefslogtreecommitdiff
path: root/ace/Svc_Conf.l
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-05-15 03:31:06 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-05-15 03:31:06 +0000
commit6092a61bba91cde849290fb4c5f7aefd1a665e59 (patch)
treef4eae324dc4b6fea3a503bf1680f88edae96cf3d /ace/Svc_Conf.l
parentdd1e7153467a1935cf6f87d62e5e574bc632b96e (diff)
downloadATCD-6092a61bba91cde849290fb4c5f7aefd1a665e59.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Svc_Conf.l')
-rw-r--r--ace/Svc_Conf.l7
1 files changed, 7 insertions, 0 deletions
diff --git a/ace/Svc_Conf.l b/ace/Svc_Conf.l
index a4e6f5b4735..f128cec1974 100644
--- a/ace/Svc_Conf.l
+++ b/ace/Svc_Conf.l
@@ -12,6 +12,10 @@ int yylineno = 1;
// Keeps track of the number of errors encountered so far.
int yyerrno = 0;
+// Used to parse service configurator directives from a string rather
+// than from a svc.conf file.
+char *yydirective = 0;
+
#define token(x) x
%}
@@ -73,5 +77,8 @@ yywrap (void)
::fflush (yyin);
yytext[0] = '#';
yyleng = 0;
+
+ // This needs to be freed to prevent a memory leak.
+ yy_delete_buffer (yy_current_buffer);
return 1;
}