Changeset 0073528 in rtems-libbsd


Ignore:
Timestamp:
Dec 20, 2013, 1:25:06 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, 5-freebsd-12, 6-freebsd-12, freebsd-9.3, master
Children:
f8d99e9
Parents:
aba4586
git-author:
Sebastian Huber <sebastian.huber@…> (12/20/13 13:25:06)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/20/13 14:35:59)
Message:

ROUTE(8): Fix memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sbin/route/route.c

    raba4586 r0073528  
    412412
    413413        if (strcmp("all", arg) == 0) {
    414                 str = calloc(1, ALLSTRLEN);
     414                str0 = str = calloc(1, ALLSTRLEN);
    415415                if (str == NULL) {
    416416                        error = 1;
Note: See TracChangeset for help on using the changeset viewer.