#148 closed enhancement (fixed)
psTraceReset() doesn't free memory
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | sys | Version: | unspecified |
| Severity: | minor | Keywords: | |
| Cc: |
Description
The SDRS doesn't state explicitly that it should, but my initial implementation did. George noted that
there was no API to free all the psTrace memory and added psTraceFree() -- but it makes sense to
use psTraceReset as none of that memory is useful after the system's been reset.
In this case, psTraceReset() (which isn't in the SDRS) should be removed.
rel2_2
Change History (9)
comment:1 by , 22 years ago
| Owner: | changed from to |
|---|
comment:2 by , 22 years ago
Hey, Lupton found rel2_2 - how clever of him! I really didn't advertise its
existence.
comment:3 by , 22 years ago
I removed psTraceFree(), and coded psTraceReset() to free all components in the
tree and set cRoot to NULL.
comment:4 by , 22 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
comment:5 by , 22 years ago
The SDR was never modified to conform to the behavior requested in this bug.
comment:6 by , 22 years ago
| Cc: | added |
|---|---|
| Resolution: | worksforme |
| Status: | closed → reopened |
Is this requirement of freeing memory going to be add to SDR for function
psTraceReset?
comment:7 by , 22 years ago
| Status: | reopened → assigned |
|---|
Fixed the SDRS:
In addition, a function \code{bool psTraceReset(void)} will free memory used by
\code{psTrace} functions, effectively resetting all trace levels to 0.
comment:8 by , 21 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |

Is this really a bug on the code or the requirement specification? The SDRS
states "a function void psTraceReset(void) will set all trace levels to 0."
This sounds like what was implemented for that function.
I think a change in the SDRS might need to be done here.
-rdd
Oh, and the last thing in the initial report was "In this case, psTraceReset()
(which isn't in the SDRS) should be removed." Did you mean psTraceFree should
be removed?