Re: [ng-spice] History and command completion


To ng-spice@ieee.ing.uniroma1.it
From Paolo Nenzi <pnenzi@ieee.ing.uniroma1.it>
Date Wed, 8 Nov 2000 18:24:06 +0100 (CET)
Delivered-To mailing list ng-spice@ieee.ing.uniroma1.it
In-Reply-To <GDDFCNDEIDKDIAAA@hotbot.com >
Mailing-List contact ng-spice-help@ieee.ing.uniroma1.it; run by ezmlm
Reply-To ng-spice@ieee.ing.uniroma1.it

On Wed, 8 Nov 2000, GLAO S. Dezai wrote:

> I dont agree, because we cannot free val since we dont know where it has 
>been allocated. We free the result of the cp_unquote after use because we 
>know that the string has been copied and must be freed to avoid the memory 
>leak problem.
> 
> Anyway, i am sorry because i didnot test it directly on ngspice.
> 
> Paolo, is it possible to remove the patch until a solution is found to free 
>safely the memory?
> 
> Dezai Glao
> 

Glao, I have spent an evening preventing a segfault on ngspice startup
caused by your patch. I the run the simulator and not get any other
segfault: the change I made are in CVS, look at variable.c and tell me if
that is a good solution.

Regarding your question, it should be possible, Arno ?

Anyway I am out of ngspice until monday, sorry there is the LiMe2000 and I
am in the organizing committee.

Bye,
Paolo


Partial thread listing: