GNOME Bugzilla – Bug 767009
PedGeometry objects are memory leaked
Last modified: 2016-06-13 17:30:56 UTC
Fragment from my commit message: Calling libparted ped_geometry_new() creates a new PedGeometry object from malloced memory, however the corresponding ped_geometry_destroy() is never called to destroy the object and free the memory. Fix to follow shortly, Mike
Created attachment 328711 [details] [review] Stop leaking PedGeometry object memory (v1) Hi Curtis, Here's patch v1 for this. Thanks, Mike
Hi Mike, Good catch on this memory leak. I applied patch v1 from comment #1 and in my testing all worked as expected and I did not discover any regressions. Patch v1 from comment #1 has been committed to the git repository for inclusion in the next release of GParted. The relevant git commit can be viewed at the following link: Stop leaking PedGeometry object memory (#767009) https://git.gnome.org/browse/gparted/commit/?id=3724421e3037d1faeeefe1786c8908431b313334 Curtis
This enhancement was included in the GParted 0.26.1 release on June 13, 2016.