mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Cleanup: avoid a few memory leaks
Coverity CID 215199 Coverity CID 215195 Coverity CID 215196 Coverity CID 215198 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									65213f044e
								
							
						
					
					
						commit
						652e382e68
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -177,6 +177,7 @@ void ostctools_import(const char *file, struct dive_table *divetable)
 | 
				
			||||||
	sort_table(divetable);
 | 
						sort_table(divetable);
 | 
				
			||||||
	fclose(archive);
 | 
						fclose(archive);
 | 
				
			||||||
out:
 | 
					out:
 | 
				
			||||||
 | 
						free(archive);
 | 
				
			||||||
	free(devdata);
 | 
						free(devdata);
 | 
				
			||||||
	free(buffer);
 | 
						free(buffer);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1089,6 +1089,9 @@ void DivePlannerPointsModel::computeVariations(struct diveplan *original_plan, s
 | 
				
			||||||
finish:
 | 
					finish:
 | 
				
			||||||
	free_dps(original_plan);
 | 
						free_dps(original_plan);
 | 
				
			||||||
	free(original_plan);
 | 
						free(original_plan);
 | 
				
			||||||
 | 
						free(save);
 | 
				
			||||||
 | 
						free(cache);
 | 
				
			||||||
 | 
						free(dive);
 | 
				
			||||||
//	setRecalc(oldRecalc);
 | 
					//	setRecalc(oldRecalc);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue