Changeset aecb5086 in rtems


Ignore:
Timestamp:
Jul 26, 2015, 1:28:07 PM (4 years ago)
Author:
Michael Davidsaver <mdavidsaver@…>
Branches:
4.10
Children:
991e1b85
Parents:
05d8495
git-author:
Michael Davidsaver <mdavidsaver@…> (07/26/15 13:28:07)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/26/17 06:41:42)
Message:

tftpDriver: don't free directory node's path string

Update #2375.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/lib/tftpDriver.c

    r05d8495 raecb5086  
    513513        size_t len = currentlen + pathlen;
    514514
    515         current = realloc (current, len + 1);
     515        current = malloc (len + 1);
    516516        if (current != NULL) {
     517            memcpy (current, currentloc->node_access, currentlen);
    517518            memcpy (current + currentlen, path, pathlen);
    518519            current [len] = '\0';
Note: See TracChangeset for help on using the changeset viewer.