Changeset 0073528 in rtems-libbsd


Ignore:
Timestamp:
Dec 20, 2013, 1:25:06 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 647dd08ae2aa69b935c2847ea450fb824322ecae, freebsd-9.3, c6261f97870562d4c797cfb1ff1ba0affb85a916
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.