2019-10-16 11:55 EDT


View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002539FSSCPPlatform-Engine interactionpublic2011-11-09 08:36
ReporterEchelon9 
Assigned ToEchelon9 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version3.6.14 RC1 
Target VersionFixed in Version3.6.14 RC1 
Summary0002539: Valgrind: Memory leak - parse_ship_values(ship_info*, bool, bool, bool)
DescriptionValgrind reports ~313kB of still reachable memory, which was originally allocated with this section of the animation code:

sip->subsystems = (model_subsystem *)vm_malloc(sizeof(model_subsystem) * sip->n_subsystems );

parse_ship_values(ship_info*, bool, bool, bool) (ship.cpp:3663)
Additional Information==11292== 313,152 bytes in 25 blocks are still reachable in loss record 5,565 of 5,570
==11292== at 0x1EC94C5: malloc (vg_replace_malloc.c:266)
==11292== by 0x29D4D: _vm_malloc(int, char*, int, int) (stubs.cpp:563)
==11292== by 0x3D56D3: parse_ship_values(ship_info*, bool, bool, bool) (ship.cpp:3663)
==11292== by 0x3D5CD5: parse_ship(char*, bool) (ship.cpp:1075)
==11292== by 0x3D844C: parse_shiptbl(char*) (ship.cpp:4062)
==11292== by 0x3D873C: ship_init() (ship.cpp:4237)
==11292== by 0x6B27B: game_init() (freespace.cpp:1993)
==11292== by 0x6B544: game_main(char*) (freespace.cpp:7026)
==11292== by 0x6B843: SDL_main (freespace.cpp:7217)
==11292== by 0x3D37D: -[SDLMain applicationDidFinishLaunching:] (SDLMain.m:300)
==11292== by 0x22E7F48: __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 (in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
==11292== by 0x3AB5FF2: ___CFXNotificationPost_block_invoke_1 (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes

~0012945

Echelon9 (developer)

Resolved in r7966
+Notes

-Issue History
Date Modified Username Field Change
2011-11-09 08:35 Echelon9 New Issue
2011-11-09 08:35 Echelon9 Status new => assigned
2011-11-09 08:35 Echelon9 Assigned To => Echelon9
2011-11-09 08:36 Echelon9 Note Added: 0012945
2011-11-09 08:36 Echelon9 Status assigned => resolved
2011-11-09 08:36 Echelon9 Fixed in Version => 3.6.14 RC1
2011-11-09 08:36 Echelon9 Resolution open => fixed
+Issue History