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 664478 - Callback for PIN input in wizard may leak memory
Callback for PIN input in wizard may leak memory
Status: RESOLVED FIXED
Product: gnome-bluetooth
Classification: Core
Component: wizard
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-bluetooth-general-maint@gnome.bugs
gnome-bluetooth-general-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2011-11-21 15:00 UTC by Daniele Forsi
Modified: 2011-11-21 15:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Call g_free() before overwriting the pointer with return value from g_strdup() (750 bytes, patch)
2011-11-21 15:00 UTC, Daniele Forsi
committed Details | Review

Description Daniele Forsi 2011-11-21 15:00:00 UTC
Created attachment 201821 [details] [review]
Call g_free() before overwriting the pointer with return value from g_strdup()

Actually it will leak only if patch 201818 from bug 664476 is applied, however other usages of the user_pincode pointer in this code call g_free() just before g_strdup() so it can be done here too.