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 701525 - gi: fix free of dangling pointer
gi: fix free of dangling pointer
Status: RESOLVED FIXED
Product: gjs
Classification: Bindings
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2013-06-03 13:30 UTC by Ray Strode [halfline]
Modified: 2013-06-12 19:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gi: fix free of dangling pointer (2.18 KB, patch)
2013-06-03 13:30 UTC, Ray Strode [halfline]
committed Details | Review

Description Ray Strode [halfline] 2013-06-03 13:30:47 UTC
object_instance_props_to_g_parameters is sometimes calling g_free
on the name variable when name isn't set.

This commit fixes that.
Comment 1 Ray Strode [halfline] 2013-06-03 13:30:48 UTC
Created attachment 245922 [details] [review]
gi: fix free of dangling pointer
Comment 2 Colin Walters 2013-06-03 14:20:05 UTC
Review of attachment 245922 [details] [review]:

Looks right.
Comment 3 Ray Strode [halfline] 2013-06-12 19:41:28 UTC
Attachment 245922 [details] pushed as 3fc0b4d - gi: fix free of dangling pointer