Changeset 223 for branches/samba-3.3.x/source/lib/dbwrap_ctdb.c
- Timestamp:
- May 24, 2009, 7:51:24 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/lib/dbwrap_ctdb.c
r206 r223 122 122 struct ctdb_rec_data *r; 123 123 size_t m_size, r_size; 124 struct ctdb_marshall_buffer *m2 ;125 126 r = db_ctdb_marshall_record( mem_ctx, reqid, key, header, data);124 struct ctdb_marshall_buffer *m2 = NULL; 125 126 r = db_ctdb_marshall_record(talloc_tos(), reqid, key, header, data); 127 127 if (r == NULL) { 128 128 talloc_free(m); … … 134 134 mem_ctx, offsetof(struct ctdb_marshall_buffer, data)); 135 135 if (m == NULL) { 136 return NULL;136 goto done; 137 137 } 138 138 m->db_id = db_id; … … 146 146 if (m2 == NULL) { 147 147 talloc_free(m); 148 return NULL;148 goto done; 149 149 } 150 150 151 151 memcpy(m_size + (uint8_t *)m2, r, r_size); 152 152 153 m2->count++; 154 155 done: 153 156 talloc_free(r); 154 155 m2->count++;156 157 157 return m2; 158 158 }
Note:
See TracChangeset
for help on using the changeset viewer.