After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 564799 - dia/objects/SISSI/sissi_object.c:315: Mismatching allocation and deallocation: filename
dia/objects/SISSI/sissi_object.c:315: Mismatching allocation and deallocation...
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
devel
Other All
: Normal normal
: 0.97
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-16 23:35 UTC by aggro
Modified: 2009-01-02 14:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description aggro 2008-12-16 23:35:22 UTC
In file dia/objects/SISSI/sissi_object.c:315: 
Variable filename is allocated in line 200 by:
filename = g_strdup(dia_get_data_directory(composition_filename));

And later released in line 315 by:
free (filename);

g_free() should probably be used instead of free().
Comment 1 Sameer D. Sahasrabuddhe 2008-12-26 21:05:24 UTC
Fixed by a patch in bug 565720.
Comment 2 Hans Breuer 2009-01-02 14:11:48 UTC
2009-01-02  Hans Breuer  <hans@breuer.org>

	Patch from Sameer D. Sahasrabuddhe fixing bug #565720
	En passant fixing bug #564799 and bug #564916
	* objects/SISSI/sissi.[ch] : introduced a new local function that 
	returns the correct sheets directory for SISSI
	* objects/SISSI/site.c objects/SISSI/faraday.c objects/SISSI/area.c
	  objects/SISSI/room.c objects/SISSI/sissi_object.c : use it
	* sheets/SISSI/*.xml : relative path removed from 
	<sissi:attribute name="file_image"/>

	* app/create_object.c : don't crash if object creation fails
	(bug #565567,  Sameer D. Sahasrabuddhe)