aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-01-07 16:41:21 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-08 05:53:26 +0800
commita32462c26b55ff1d28ec9d126655828511a89c35 (patch)
tree0e6709ff4bb4f190a29477990fd34831a3ac0224 /qt-ui/mainwindow.cpp
parent4d8168cc5793d5dfc2b263b5700f8fe5088c9cf4 (diff)
downloadsubsurface-a32462c26b55ff1d28ec9d126655828511a89c35.tar.gz
DownloadFromDCWidget: prevent possible leaks for log/dump files
If the 'logfile_name' and 'dumpfile_name' were NULL we can simply strdup() them with a new value, but if there was a previous value we need to free() first. C99 6.7.8 allows us to keep said variables without the explicit NULL initialiazation. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
0 files changed, 0 insertions, 0 deletions