Fix:Core:Fix possible memleak indirect found by analyzing valgrind output
authorwoglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 17 Mar 2010 20:06:10 +0000 (20:06 +0000)
committerwoglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 17 Mar 2010 20:06:10 +0000 (20:06 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3030 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/speech.c

index c3e77f0..861fe78 100644 (file)
@@ -56,6 +56,7 @@ speech_new(struct attr *parent, struct attr **attrs)
        dbg(1, "say=%p\n", this_->meth.say);
        dbg(1,"priv=%p\n", this_->priv);
        if (! this_->priv) {
+               attr_list_free(this_->attrs);
                g_free(this_);
                return NULL;
        }