GNOME Bugzilla – Bug 311074
Patch fixing several memory leaks in memo file conduit
Last modified: 2005-08-10 13:51:27 UTC
Version details: gnome-pilot-conduits-2.0.13-1 Distribution/Version: Fedora Core 4 While working on getting gnome-pilot-conduits working on FC4 (see bug #274032), I ran into several memory leaks in the memo conduit. 1) filenames were being leaked in generate_name, as the local record may well already have a filename set but we were unconditionally overwriting it 2) filenames were being leaked in load_records if category == 16; we were doing a continue, but not freeing the locally allocated filename 3) keys in the hashtable were never being freed. In fact, the hash table memory management can be made substantially cleaner just by using g_hash_table_new_full The attached patch fixes these three bugs. In addition, a changelog entry has been attached.
Created attachment 49494 [details] [review] Patch fixing memory leaks
Created attachment 49495 [details] [review] Changelog entry