[strongSwan-dev] [RFC PATCH] Fix missing pointer dereference

Tobias Brunner tobias at strongswan.org
Thu Dec 4 14:18:52 CET 2014


> One more small memory leak reported by cppcheck:
> [src/medsrv/controller/user_controller.c:247]: (error) Memory leak: old_login

Hm, old_login is copied using strdupa(3), that is, the memory is
allocated on the stack (using alloca(3)).  Seems like a false positive
to me.

Regards,
Tobias



More information about the Dev mailing list