Commit 279222bd authored by Martin Aumueller's avatar Martin Aumueller Committed by Matt Colyer

Don't use iPhone after freeing it.

Signed-off-by: 's avatarMatt Colyer <matt@colyer.name>
parent 07fcebbb
...@@ -157,8 +157,9 @@ void *ifuse_init(struct fuse_conn_info *conn) { ...@@ -157,8 +157,9 @@ void *ifuse_init(struct fuse_conn_info *conn) {
void ifuse_cleanup(AFClient *afc) { void ifuse_cleanup(AFClient *afc) {
if (afc) { if (afc) {
free_iPhone(afc->phone); iPhone *phone = afc->phone;
afc_disconnect(afc); afc_disconnect(afc);
free_iPhone(phone);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment