Changeset ccfe9c3 in mainline for uspace/lib/c/generic/io/con_srv.c


Ignore:
Timestamp:
2014-09-23T14:23:02Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7e69e0e
Parents:
58f26cb
Message:

Add missing free() in error path (Coccinelle)

The problem was found using Coccinelle [1] with the slightly
modified version of kfree3/kmalloc.cocci [2].

[1] http://coccinelle.lip6.fr/
[2] https://github.com/coccinelle/coccinellery

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/con_srv.c

    r58f26cb rccfe9c3  
    8989                async_answer_0(rcallid, ENOTSUP);
    9090                async_answer_0(callid, ENOTSUP);
     91                free(buf);
    9192                return;
    9293        }
     
    9697                async_answer_0(rcallid, rc);
    9798                async_answer_0(callid, rc);
     99                free(buf);
    98100                return;
    99101        }
Note: See TracChangeset for help on using the changeset viewer.