Commit 2e608654 authored by Steven Arnow's avatar Steven Arnow

Minor memleak fixes in dbpd comm.c

parent 34f4f2cc
......@@ -47,6 +47,7 @@ static void vtab_method_call(GDBusConnection *conn, const gchar *sender, const g
mpoint = package_mount_get(p, arg1);
g_dbus_method_invocation_return_value(inv, g_variant_new("(is)", mpoint?1:DBP_ERROR_NOTFOUND, mpoint?mpoint:"!"));
free(mpoint);
} else if (!g_strcmp0(method_name, "RegisterPath")) {
char *pkg_id, *mount, *dev;
int ret;
......
......@@ -113,7 +113,7 @@ static int package_add(struct package_s *p, char *path, char *id, char *device,
goto fail;
fail:
free(path), free(id), free(device), free(mount), free(sys), free(pkg);
free(path), free(id), free(device), free(mount), free(sys), free(pkg), free(appdata);
return errid;
}
......
......@@ -156,5 +156,7 @@ void state_recover(struct package_s *p) {
p->instance = NULL, p->instances = 0;
}
desktop_free(df);
return;
}
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