|
From: | Martin Hedenfalk |
Subject: | Re: [Confuse-devel] Segfault in confuse.c |
Date: | Sat, 1 Nov 2003 11:53:31 +0100 |
Hello Adam,Whitout the free() there will be memory leaks. String options must always be set to a malloc'ed value. Don't set it directly by assigning, but rather use the cfg_setstr function.
HTH /martin måndagen den 27 oktober 2003 kl 08.41 skrev Adam Watson:
Hi, I was able to trace a segfault to line 558 of confuse.c: free(val->string);My app was segfaulting while trying to parse a config file. I commented outthe line and the segfault went away. I am assuming that it was either misplaced in the code of was forgotten about. Could just be my coding style though. I am not the best coder. Adam _______________________________________________ Confuse-devel mailing list address@hidden http://mail.nongnu.org/mailman/listinfo/confuse-devel
[Prev in Thread] | Current Thread | [Next in Thread] |