Fix a memory leak in dynamic loader
This commit is contained in:
parent
6973b84394
commit
95b63762fb
|
@ -6412,3 +6412,5 @@
|
|||
* arch/arm/src/a1x/a1x_lowputc.c and a1x_serial.c: Mystery
|
||||
finally solved: The A10 serial clock is the OSC24M clock.
|
||||
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
|
||||
*
|
||||
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2009, 2014 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -231,6 +231,10 @@ int load_module(FAR struct binary_s *bin)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* Release the traversal handle */
|
||||
|
||||
exepath_release(handle);
|
||||
}
|
||||
|
||||
/* Restore the relative path. This is not needed for anything
|
||||
|
|
Loading…
Reference in New Issue