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

Thomas Jarosch thomas.jarosch at intra2net.com
Thu Dec 4 14:24:24 CET 2014


On Thursday, 4. December 2014 14:18:52 you wrote:
> > 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.

right, I missed that it's strdupa() instead of strdup(). I'll report this to 
the cppcheck team or commit a patch directly, thanks for checking.

Thomas


More information about the Dev mailing list