ret = ctdb_ltdb_fetch(rec->ctdb_db, rec->key, &header, NULL, NULL);
if (ret) {
ctdb_set_error(rec->ctdb_db->ctdb, "Fetch of locally held record failed");
+ talloc_free(rec);
return ret;
}
ret = ctdb_ltdb_store(rec->ctdb_db, rec->key, &header, data);
+ talloc_free(rec);
+
return ret;
}
state = ctdb_client_store_unlock_send(rec, rec, data);
res = ctdb_client_store_unlock_recv(state, rec);
- return res;
+ talloc_free(rec);
+ return res;
}
#include "system/network.h"
#include "system/filesys.h"
#include "../include/ctdb_private.h"
-#include "ctdb.h"
+#include "../include/ctdb.h"
/* structures for packet queueing - see common/ctdb_io.c */
struct ctdb_partial {
#include "system/network.h"
#include "system/filesys.h"
#include "../include/ctdb_private.h"
-
+#include "lib/util/dlinklist.h"
/*
this dispatches the messages to the registered ctdb message handler
#include "includes.h"
#include "lib/events/events.h"
+#include "lib/tdb/include/tdb.h"
#include "system/network.h"
#include "system/filesys.h"
-#include "ctdb_private.h"
+#include "../include/ctdb_private.h"
/*
return error string for last error