diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-03 12:17:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-03 13:09:24 +0100 |
commit | 20a48f8a681a18ac8d8dafbb3ecde85a61707911 (patch) | |
tree | 9bb8910e06d7b83e041ff983985a060dc78891f1 /extensions | |
parent | 8f5e4f2f8f26b308e88ecf1a15be8e213e373bc3 (diff) |
CID#705647 leak on error path
Change-Id: I6e52bfb34e7c4be0d17dfa7849d4a96248aa49b4
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/scanner/sanedlg.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx index d5e78f85bd05..f13f652a26dd 100644 --- a/extensions/source/scanner/sanedlg.cxx +++ b/extensions/source/scanner/sanedlg.cxx @@ -1337,7 +1337,10 @@ sal_Bool SaneDlg::SetAdjustedNumericalValue( double* pValues = NULL; int nValues; if( ( nValues = mrSane.GetRange( nOption, pValues ) ) < 0 ) + { + delete [] pValues; return sal_False; + } #if OSL_DEBUG_LEVEL > 1 fprintf( stderr, "SaneDlg::SetAdjustedNumericalValue( \"%s\", %lg ) ", |