Markus Armbruster
012aef0734
maint: avoid useless "if (foo) free(foo)" pattern
...
My Coccinelle semantic patch finds a few more, because it also fixes up
the equally pointless conditional
if (foo) {
free(foo);
foo = NULL;
}
Result (feel free to squash it into your patch):
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2015-09-11 10:21:38 +03:00
..
2015-06-22 18:20:40 +02:00
2015-06-22 18:20:41 +02:00
2015-06-22 18:20:41 +02:00
2013-04-08 18:13:16 +02:00
2013-09-19 11:28:40 +02:00
2015-04-30 16:05:48 +03:00
2015-02-10 09:27:20 +03:00
2014-06-02 16:29:00 +02:00
2014-04-22 12:40:57 +02:00
2015-05-08 13:01:06 +02:00
2015-05-08 13:01:06 +02:00
2015-05-08 13:01:06 +02:00
2015-05-08 13:01:07 +02:00
2015-05-08 13:01:07 +02:00
2015-07-27 14:12:18 +01:00
2015-06-22 18:20:41 +02:00
2015-07-17 13:20:53 +02:00
2015-06-22 18:20:40 +02:00
2015-05-08 13:01:07 +02:00
2015-05-08 13:01:07 +02:00
2015-09-11 10:21:38 +03:00
2015-03-20 08:50:12 +01:00
2015-07-20 17:01:00 +01:00
2015-06-22 18:20:41 +02:00
2015-03-19 11:11:55 +03:00
2015-06-12 06:53:57 +02:00
2015-05-08 13:01:08 +02:00
2015-09-11 10:21:38 +03:00
2015-02-18 10:53:10 +01:00
2015-09-11 10:21:38 +03:00
2015-02-18 11:58:50 +01:00
2013-02-19 12:30:05 +01:00
2013-06-20 16:39:52 +02:00
2015-03-18 11:50:47 +01:00
2013-01-08 10:56:58 +01:00
2013-01-08 10:56:58 +01:00
2013-01-08 10:56:58 +01:00
2013-01-08 10:56:58 +01:00
2015-09-11 10:21:38 +03:00