summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-12-31 23:27:00 +1100
committerChris Johns <chrisj@rtems.org>2012-12-31 23:27:00 +1100
commit2bbf8f5cddaa50b21ae67147ab5120f3d26fbe70 (patch)
tree99bf517f7ca71046efb84cacd95dff6cffac23be
parenta393008436d6a5c00956eee0f371c71363c06ae2 (diff)
Create the RTL error before freeing the buffer.
-rw-r--r--rtl-rap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtl-rap.c b/rtl-rap.c
index c5bde83..6b3dd9d 100644
--- a/rtl-rap.c
+++ b/rtl-rap.c
@@ -354,8 +354,8 @@ rtems_rtl_rap_relocate (rtems_rtl_rap_t* rap, rtems_rtl_obj_t* obj)
if (!symbol)
{
- free (symname_buffer);
rtems_rtl_set_error (EINVAL, "global symbol not found: %s", symname);
+ free (symname_buffer);
return false;
}