Opened 8 years ago

Closed 6 years ago

#11209 closed Bugs (fixed)

conversion - cast_test leaks memory

Reported by: benpope81@… Owned by: Antony Polukhin
Milestone: Boost 1.63.0 Component: concept_check
Version: Boost Development Trunk Severity: Problem
Keywords: conversion test memory leak Cc: Antony Polukhin

Description

The leak is in the test, it doesn't delete what it allocates.

==16678==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 16 byte(s) in 1 object(s) allocated from:

#0 0x4c3d6b in operator new(unsigned long) /home/ben/development/llvm/trunk/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35 #1 0x4c4c9e in main /home/ben/development/boost/test/build/boost_root/status/../libs/conversion/test/cast_test.cpp:54:22 #2 0x7efd17fa6a3f in libc_start_main /build/buildd/glibc-2.21/csu/libc-start.c:289

Direct leak of 8 byte(s) in 1 object(s) allocated from:

#0 0x4c3d6b in operator new(unsigned long) /home/ben/development/llvm/trunk/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35 #1 0x4c4f39 in main /home/ben/development/boost/test/build/boost_root/status/../libs/conversion/test/cast_test.cpp:69:12 #2 0x7efd17fa6a3f in libc_start_main /build/buildd/glibc-2.21/csu/libc-start.c:289

SUMMARY: AddressSanitizer: 24 byte(s) leaked in 2 allocation(s).

EXIT STATUS: 23

Change History (3)

comment:1 by viboes, 7 years ago

Component: Nonelexical_cast
Owner: set to Antony Polukhin

comment:2 by Antony Polukhin, 7 years ago

Component: lexical_castconcept_check
Milestone: To Be DeterminedBoost 1.60.0
Status: newassigned

Fixed in develop branch.

Will merge to the master branch as soon as the tests pass.

comment:3 by Antony Polukhin, 6 years ago

Milestone: Boost 1.60.0Boost 1.63.0
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.