Hi,

On 08/23/2017 02:54 PM, Andreas Reichel wrote:
On Wed, Aug 23, 2017 at 01:34:22PM +0200, Claudius Heine wrote:
                        result = 1;
                }
+               free(envfilepath);

free without malloc? Could it be that you didn't even allocated space for
envfilepath? ;)

asprintf has integrated malloc, that's why the first parameter is a
pointer to a pointer.

Good to know. When I see a new free and don't remember reading a new malloc I get triggered. ;)

Cheers,
Claudius

--
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: [email protected]

--
You received this message because you are subscribed to the Google Groups "EFI Boot 
Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/fae9c2c6-c72f-abf4-311d-3d7baaa4b203%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to