#179 closed enhancement (fixed)
Message "memory block %ld was freed but still used" is unclear
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | lowest | Milestone: | |
| Component: | sys | Version: | 0.2.2 |
| Severity: | minor | Keywords: | |
| Cc: |
Description
The error string
memory block %ld was freed but still used
is unclear. What it means is that a block was used after being freed, and is now
being freed a second time.
I'd suggest something like
psFree called for an already free memory block %ld
Change History (2)
comment:1 by , 22 years ago
| Status: | new → assigned |
|---|
comment:2 by , 22 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

Added logic in the main branch of the CVS to catch this particular case so
that the error is specific to psFree. The error message is now something
like:
Block 1, allocated at tst_psMemory.c:548, freed multiple times at
tst_psMemory.c:553.
The new message, I think, is pretty explicit and gives the allocation point
and where it was freed the additional time(s).