Plug some memory leaks and an invalid read

Note in protocol-dbus.c specifically, method_signatures needs to be freed
before method_handlers, because otherwise h->method_name is freed while it is
still in use as a key in the method_signatures hashmap.
This commit is contained in:
Maarten Bosmans 2011-08-12 00:17:39 +02:00 committed by Colin Guthrie
parent a8f20e8d95
commit b430407f47
5 changed files with 6 additions and 3 deletions

View file

@ -113,6 +113,7 @@ void pa_flist_free(pa_flist *l, pa_free_cb_t free_cb) {
free_cb(pa_atomic_ptr_load(&elem->ptr));
}
pa_xfree((char *) l->name);
pa_xfree(l);
}