Re: [PATCH 7/7] Remove use of variables passed only to 'VIR_FREE'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On a Thursday in 2020, Ján Tomko wrote:
On a Thursday in 2020, Peter Krempa wrote:
Compilers are not very good at detecting this problem. Fixed by manual
inspection of compilation warnings after replacing 'VIR_FREE' with an
empty macro.


Also, I see you're building without vz_sdk, I found two more occurrences

False alarm, it did not inspect the macro where it was used correctly.

Jano

with the following coccinelle spatch:

@@
identifier i;
type T;
constant C;
@@

-T i = C;
<+... when != i
-VIR_FREE(i);
...+>

Jano


Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux