[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in libplot 2.4.1
From: |
Roman Putanowicz |
Subject: |
Bug in libplot 2.4.1 |
Date: |
Mon, 13 Jun 2005 15:49:28 +0200 |
User-agent: |
Mutt/1.3.28i |
Hi,
I would like to report a bug (at least in my understanding :-)
in libplot library (version 2.4.1).
The bug is in file libplot/g_pagetype.c line 103:
100 success = true;
101 break;
102 }
103 free (viewport_pagesize);
104
105 if (success)
In this line the memory for viewport_pagesize is freed
but in subsequent lines this memory is inspected
through the 'next' pointer :-(
Unless the viewport_pagesize is not modified everything
so this is hard to spot but I had this "lack" to be bitten
by it.
Thus if one moves memory freeing just before return
everybody will be happy :-)
Regards
Roman Putanowicz
--
_/_/_/ _/ _/ _/_/_/_/_/ Roman Putanowicz
_/ _/ _/ _/ Inst.Comp.Meth.Civ.Eng.
_/ _/ _/ _/ tel +48 12 628 2569
_/_/_/racow _/_/_/niversity of _/echnology address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug in libplot 2.4.1,
Roman Putanowicz <=