Fixe memory leaks

This commit is contained in:
Ion Gaztañaga
2015-06-09 14:53:24 +02:00
parent c04a5db131
commit 5fe2014ade
2 changed files with 4 additions and 0 deletions

View File

@@ -566,6 +566,8 @@ int map_test_copyable ()
return 1;
if(!CheckEqualContainers(&shmmmapcopy, &stdmmapcopy))
return 1;
delete stdmap;
delete stdmultimap;
segment.destroy_ptr(shmmap);
segment.destroy_ptr(shmmultimap);
}

View File

@@ -571,6 +571,8 @@ int set_test_copyable ()
}
segment.destroy_ptr(shmset);
segment.destroy_ptr(shmmultiset);
delete stdset;
delete stdmultiset;
segment.shrink_to_fit_indexes();
if(!segment.all_memory_deallocated())
return 1;