diff --git a/ChangeLog b/ChangeLog index 43b14ddb3c5..1f4c80abed7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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). + diff --git a/binfmt/binfmt_loadmodule.c b/binfmt/binfmt_loadmodule.c index 322ed2c4875..f5e0f6003cd 100644 --- a/binfmt/binfmt_loadmodule.c +++ b/binfmt/binfmt_loadmodule.c @@ -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 * * 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