diff options
author | Martin Galvan <martin.galvan@tallertechnologies.com> | 2015-09-03 15:25:35 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-09-03 15:42:41 -0500 |
commit | 28a870c47f66d946a6d94887120432be37441cdb (patch) | |
tree | e57bfa9cb4de9576b6730b0b146ccb7dcd5393b0 /cpukit/libnetworking | |
parent | cpukit/libmisc/dumpbuf/dumpbuf.c: Fix undefined behavior for sprintf() (diff) | |
download | rtems-28a870c47f66d946a6d94887120432be37441cdb.tar.bz2 |
cpukit/libnetworking/rtems/rtems_dhcp.c: Fix compilation error
Apparently 'free' is defined as a macro which takes two arguments and calls
rtems_bsdnet_free. When fixing #2405 I added a missing 'free' but didn't notice
it was non-standard.
Closes #2410.
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_dhcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_dhcp.c b/cpukit/libnetworking/rtems/rtems_dhcp.c index 87be238ddb..cb6966d833 100644 --- a/cpukit/libnetworking/rtems/rtems_dhcp.c +++ b/cpukit/libnetworking/rtems/rtems_dhcp.c @@ -405,7 +405,7 @@ process_options (unsigned char *optbuf, int optbufSize) strncpy (dhcp_hostname, p, len); } else { /* realloc failed */ printf ("dhcpc: realloc failed (%s:%d)", __FILE__, __LINE__); - free (dhcp_hostname); + free (dhcp_hostname, 0); dhcp_hostname = NULL; } } else { /* dhcp_hostname == NULL */ |