mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Fix a memory leak in dynamic loader
This commit is contained in:
@@ -6412,3 +6412,5 @@
|
|||||||
* arch/arm/src/a1x/a1x_lowputc.c and a1x_serial.c: Mystery
|
* arch/arm/src/a1x/a1x_lowputc.c and a1x_serial.c: Mystery
|
||||||
finally solved: The A10 serial clock is the OSC24M clock.
|
finally solved: The A10 serial clock is the OSC24M clock.
|
||||||
Thanks to Alan Carvalho de Assis (2014-1-10)
|
Thanks to Alan Carvalho de Assis (2014-1-10)
|
||||||
|
* binfmt/binfmt_loadmodule.c: Fix a memory leak (2013-1-11).
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* binfmt/binfmt_loadmodule.c
|
* binfmt/binfmt_loadmodule.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009, 2014 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -231,6 +231,10 @@ int load_module(FAR struct binary_s *bin)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Release the traversal handle */
|
||||||
|
|
||||||
|
exepath_release(handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Restore the relative path. This is not needed for anything
|
/* Restore the relative path. This is not needed for anything
|
||||||
|
|||||||
Reference in New Issue
Block a user