Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
RiscOS
S
Sources
Lib
DDTLib
Commits
4ff1332b
Commit
4ff1332b
authored
6 years ago
by
Robert Sprowson
Browse files
Options
Download
Email Patches
Plain Diff
Fix handle and memory leaks on error
Found by cppcheck static analysis. Version 0.07. Tagged as 'DDTLib-0_07'
parent
5360b8d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
VersionNum
VersionNum
+10
-10
c/DDT
c/DDT
+5
-0
No files found.
VersionNum
View file @
4ff1332b
/* (0.0
6
)
/* (0.0
7
)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.0
6
#define Module_MajorVersion_CMHG 0.0
7
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG
10 Jan
201
5
#define Module_Date_CMHG
02 Aug
201
8
#define Module_MajorVersion "0.0
6
"
#define Module_Version
6
#define Module_MajorVersion "0.0
7
"
#define Module_Version
7
#define Module_MinorVersion ""
#define Module_Date "
10 Jan
201
5
"
#define Module_Date "
02 Aug
201
8
"
#define Module_ApplicationDate "
10-Jan
-1
5
"
#define Module_ApplicationDate "
02-Aug
-1
8
"
#define Module_ComponentName "DDTLib"
#define Module_ComponentPath "gpl/RiscOS/Sources/ThirdParty/JSmith/Lib/DDTLib"
#define Module_FullVersion "0.0
6
"
#define Module_HelpVersion "0.0
6
(
10 Jan
201
5
)"
#define Module_LibraryVersionInfo "0:
6
"
#define Module_FullVersion "0.0
7
"
#define Module_HelpVersion "0.0
7
(
02 Aug
201
8
)"
#define Module_LibraryVersionInfo "0:
7
"
This diff is collapsed.
Click to expand it.
c/DDT
View file @
4ff1332b
...
...
@@ -214,6 +214,7 @@ DDT_ddtinfo_handle DDT_LoadDDTInfoForFile( const char* filename)
if
(
!
file
)
{
/*fprintf( stderr, "Couldn't read image file '%s'\n", filename);*/
free
(
ddtdata
);
return
NULL
;
}
...
...
@@ -225,6 +226,8 @@ DDT_ddtinfo_handle DDT_LoadDDTInfoForFile( const char* filename)
if
(
ddtdata
->
aifheader
.
size_debug
==
0
)
{
Desk_Debug2_Printf
(
"DDT_LoadDDTInfo - no debugging data in file
\n
"
);
fclose
(
file
);
free
(
ddtdata
);
return
NULL
;
}
...
...
@@ -245,6 +248,8 @@ DDT_ddtinfo_handle DDT_LoadDDTInfoForFile( const char* filename)
if
(
!
ddtdata
->
data
)
{
/*fprintf( stderr, "Couldn't malloc space for debug info - %i bytes\n", global_ddtdata.aifheader.size_debug);*/
fclose
(
file
);
free
(
ddtdata
);
return
NULL
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment