Rikard Falkeborn df800e35d4 Fix memleak FP with return with parenthesis (#2202)
* Fix memleak FP with return  with parenthesis

Fix FPs pointed out by daca@home on the following form:

    void* f(void) {
        void* x = malloc(1);
        return(x);
    }

Fix it by only skipping tokens if there is an actual match with a
variable. This allows to remove the special casing of "return;".

* Add testcase with cast
2019-09-22 19:18:31 +02:00
..
2019-06-29 07:49:14 +02:00
2018-10-13 18:20:31 +02:00
2019-03-16 09:17:50 +01:00
2019-09-01 11:49:43 +02:00
2019-02-09 07:24:06 +01:00
2019-03-16 09:17:50 +01:00
2019-03-16 09:17:50 +01:00
2019-06-15 13:01:45 +02:00
2019-03-16 09:17:50 +01:00
2019-06-29 07:49:14 +02:00
2019-03-16 09:17:50 +01:00
2019-04-06 06:54:38 +02:00
2019-03-16 09:17:50 +01:00
2019-02-09 07:24:06 +01:00
2019-05-17 09:31:41 +02:00
2019-09-12 10:46:33 +02:00
2019-08-12 12:54:25 +02:00
2019-02-09 07:24:06 +01:00
2019-02-09 07:24:06 +01:00
2018-10-13 18:20:31 +02:00
2018-10-13 18:20:31 +02:00
2019-09-01 11:49:43 +02:00
2018-06-17 09:06:16 +02:00
2019-09-19 20:29:33 +02:00
2019-06-29 07:49:14 +02:00
2019-09-01 11:49:43 +02:00
2019-07-31 22:35:51 +02:00
2019-09-01 11:49:43 +02:00
2019-09-20 15:07:27 +02:00
2019-09-02 15:44:40 +02:00