Re: [PATCH 20/25] virJSONValueArrayAppend: Clear pointer when taking ownership of passed value

2021-02-20 Thread Peter Krempa
On Mon, Feb 15, 2021 at 10:11:19 +0100, Michal Privoznik wrote: > On 2/12/21 6:55 PM, Peter Krempa wrote: > > The parent array takes ownership of the inserted value once all checks > > pass. Don't make the callers second-guess when that happens and modify > > the function to take a double pointer

Re: [PATCH 20/25] virJSONValueArrayAppend: Clear pointer when taking ownership of passed value

2021-02-15 Thread Michal Privoznik
On 2/12/21 6:55 PM, Peter Krempa wrote: The parent array takes ownership of the inserted value once all checks pass. Don't make the callers second-guess when that happens and modify the function to take a double pointer so that it can be cleared once the ownership is taken. Signed-off-by: Peter

[PATCH 20/25] virJSONValueArrayAppend: Clear pointer when taking ownership of passed value

2021-02-12 Thread Peter Krempa
The parent array takes ownership of the inserted value once all checks pass. Don't make the callers second-guess when that happens and modify the function to take a double pointer so that it can be cleared once the ownership is taken. Signed-off-by: Peter Krempa --- src/locking/lock_daemon.c