Skip to content

Commit 6df29f9

Browse files
committed
MB-16524: Don't destroy configuation for allocation errors
We're returning the error condition up the stack Change-Id: I66a27551f1e0a71b64b7e7dc51a469a0df177411 Reviewed-on: http://review.couchbase.org/56144 Tested-by: buildbot <[email protected]> Reviewed-by: Jim Walker <[email protected]>
1 parent 960ea1a commit 6df29f9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

vbucket/vbucket.c

-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ static int populate_servers(struct vbucket_config_st *vb, cJSON *c) {
169169

170170
vb->servers = calloc(vb->num_servers, sizeof(struct server_st));
171171
if (vb->servers == NULL) {
172-
vbucket_config_destroy(vb);
173172
vb->errmsg = strdup("Failed to allocate servers array");
174173
return -1;
175174
}

0 commit comments

Comments
 (0)