Skip to content

Commit e06a004

Browse files
authored
Update qapi-clone-visitor.c back
1 parent bd9b391 commit e06a004

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qapi/qapi-clone-visitor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static void qapi_clone_start_struct(Visitor *v, const char *name, void **obj,
3737
return;
3838
}
3939

40-
*obj = g_memdup2(*obj, size);
40+
*obj = g_memdup(*obj, size);
4141
qcv->depth++;
4242
}
4343

@@ -65,7 +65,7 @@ static GenericList *qapi_clone_next_list(Visitor *v, GenericList *tail,
6565

6666
assert(qcv->depth);
6767
/* Unshare the tail of the list cloned by g_memdup() */
68-
tail->next = g_memdup2(tail->next, size);
68+
tail->next = g_memdup(tail->next, size);
6969
return tail->next;
7070
}
7171

0 commit comments

Comments
 (0)