mirror of
https://github.com/moparisthebest/curl
synced 2024-11-15 22:15:13 -05:00
0f4a03cbb6
Since we just started make use of free(NULL) in order to simplify code, this change takes it a step further and: - converts lots of Curl_safefree() calls to good old free() - makes Curl_safefree() not check the pointer before free() The (new) rule of thumb is: if you really want a function call that frees a pointer and then assigns it to NULL, then use Curl_safefree(). But we will prefer just using free() from now on.
47 lines
614 B
Plaintext
47 lines
614 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
TrackMemory
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
none
|
|
</server>
|
|
<features>
|
|
TrackMemory
|
|
</features>
|
|
|
|
<name>
|
|
curl memory tracking operational
|
|
</name>
|
|
<command>
|
|
--version
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<file name="log/memdump">
|
|
MEM tool_paramhlp.c
|
|
MEM tool_cfgable.c
|
|
MEM tool_cfgable.c
|
|
MEM tool_cfgable.c
|
|
</file>
|
|
<stripfile>
|
|
$_ = '' if ((($_ !~ /tool_paramhlp/) && ($_ !~ /tool_cfgable/)) || ($_ =~ /free\(\(nil\)\)/))
|
|
s/:\d+.*//
|
|
s:^(MEM )(.*/)(.*):$1$3:
|
|
</stripfile>
|
|
</verify>
|
|
|
|
</testcase>
|