Check-in [8a6ff15b3c]
Overview
Comment:Fixed issue with double-free not being reported if it is the last action recorded
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:8a6ff15b3c2378f08320d47a3a0e18fb5563f796
User & Date: rkeene on 2010-05-17 05:18:12
Other Links: manifest | tags
Context
2010-05-17
05:58
Added support for only exporting PKCS#11 symbols globally check-in: a184a05fd1 user: rkeene tags: trunk
05:18
Fixed issue with double-free not being reported if it is the last action recorded check-in: 8a6ff15b3c user: rkeene tags: trunk
05:09
Fixed issue with double-free when PC/SC connection manager is unavailable

Fixed issues found from splint(1) output check-in: c70fbcca60 user: rkeene tags: trunk

Changes

Modified leakcheck/leakcheck from [eea3ae5a09] to [a80110599b].

    25     25   		free)
    26     26   			if ! echo " ${alloclist} " | grep " ${addr} " >/dev/null; then
    27     27   				if [ -z "${alloclist}" ]; then
    28     28   					alloclist="!${addr}"
    29     29   				else
    30     30   					alloclist="${alloclist} !${addr}"
    31     31   				fi
    32         -
    33         -				continue
           32  +			else
           33  +				alloclist="$(echo " ${alloclist} " | sed "s@ ${addr} @ @;s@^  *@@;s@  *\$@@")"
    34     34   			fi
    35         -			alloclist="$(echo " ${alloclist} " | sed "s@ ${addr} @ @;s@^  *@@;s@  *\$@@")"
    36     35   			;;
    37     36   		realloc)
    38     37   			alloclist="$(echo " ${alloclist} " | sed "s@ ${addr} @ ${newaddr} @;s@^  *@@;s@  *\$@@")"
    39     38   			;;
    40     39   	esac
    41     40   
    42     41   	echo "${alloclist}"