summaryrefslogtreecommitdiff
path: root/l10ntools/source/xrmlex.l
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-05-22 18:51:57 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-05-22 18:51:57 +0200
commit407db844120ead0d57118c40ab5e6acc1bad736d (patch)
tree455c5de18ea4c18b2e85f50da2a498e37d24814b /l10ntools/source/xrmlex.l
parent9adad0d1eae6e3d54042ab1e65f0b80a77562dc6 (diff)
Fix memory leak in xrmex tool
Change-Id: I102566a95b5b34daf60730ffef290913caf28eb2
Diffstat (limited to 'l10ntools/source/xrmlex.l')
-rw-r--r--l10ntools/source/xrmlex.l5
1 files changed, 1 insertions, 4 deletions
diff --git a/l10ntools/source/xrmlex.l b/l10ntools/source/xrmlex.l
index f91405f60655..c29406e030f4 100644
--- a/l10ntools/source/xrmlex.l
+++ b/l10ntools/source/xrmlex.l
@@ -205,12 +205,9 @@ void yyerror ( const char *s )
SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) {
/* error level */
int nRetValue = 0;
- char *pOutput;
FILE *pFile;
- pOutput = GetOutputFile( argc, argv );
-
- if ( !pOutput )
+ if ( !GetOutputFile( argc, argv ) )
{
return 1;
}