Fix:Core:Fixing a memory leak in my code from yesterday
authortinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 15 Oct 2008 15:41:04 +0000 (15:41 +0000)
committertinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 15 Oct 2008 15:41:04 +0000 (15:41 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@1474 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/route.c

index f668476..cfe4f07 100644 (file)
@@ -242,6 +242,9 @@ route_path_destroy(struct route_path *this)
        c=this->path;
        while (c) {
                n=c->next;
+               if (c->attrs) { 
+                       attr_list_free(c->attrs);
+               }
                g_free(c);
                c=n;
        }