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 782760 - Fix minor memory leak
Fix minor memory leak
Status: RESOLVED FIXED
Product: libgweather
Classification: Core
Component: general
3.24.x
Other All
: Normal normal
: future
Assigned To: libgweather-maint
libgweather-maint
Depends on:
Blocks:
 
 
Reported: 2017-05-17 21:35 UTC by Andreas Brauchli
Modified: 2017-05-22 15:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix memleak in GWeatherLocation (782 bytes, patch)
2017-05-17 21:35 UTC, Andreas Brauchli
committed Details | Review

Description Andreas Brauchli 2017-05-17 21:35:30 UTC
Created attachment 352048 [details] [review]
Patch to fix memleak in GWeatherLocation

While chasing another issue, I noticed that when GWeatherLocation is freed, the g_strdup()'ed yahoo_id is not freed resulting in leaked memory.
Comment 1 Andreas Brauchli 2017-05-17 21:41:35 UTC
g_strdup happens in gweather-location.c:218
Comment 2 Giovanni Campagna 2017-05-22 15:45:28 UTC
Pushed, thanks!