diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-22 18:51:57 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-22 18:51:57 +0200 |
commit | 407db844120ead0d57118c40ab5e6acc1bad736d (patch) | |
tree | 455c5de18ea4c18b2e85f50da2a498e37d24814b /l10ntools/source/xrmlex.l | |
parent | Avoid undef use of null ptr, use offsetof instead (diff) | |
download | core-407db844120ead0d57118c40ab5e6acc1bad736d.tar.gz core-407db844120ead0d57118c40ab5e6acc1bad736d.zip |
Fix memory leak in xrmex tool
Change-Id: I102566a95b5b34daf60730ffef290913caf28eb2
Diffstat (limited to 'l10ntools/source/xrmlex.l')
-rw-r--r-- | l10ntools/source/xrmlex.l | 5 |
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; } |