From: Alan T. DeKok Date: Sat, 16 Mar 2013 18:03:25 +0000 (-0400) Subject: Use talloc for handles X-Git-Tag: release_3_0_0_beta1~725 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4057e4916a1eb778c033287001accbb66b20f5e;p=thirdparty%2Ffreeradius-server.git Use talloc for handles --- diff --git a/src/modules/rlm_smsotp/rlm_smsotp.c b/src/modules/rlm_smsotp/rlm_smsotp.c index 693426c04d5..e561da8756b 100644 --- a/src/modules/rlm_smsotp/rlm_smsotp.c +++ b/src/modules/rlm_smsotp/rlm_smsotp.c @@ -73,7 +73,7 @@ static void *conn_create(void *ctx) return NULL; } - fdp = rad_malloc(sizeof(*fdp)); + fdp = talloc_zero(ctx, int); *fdp = fd; return fdp; @@ -84,7 +84,7 @@ static int conn_delete(UNUSED void *ctx, void *connection) int *fdp = connection; close(*fdp); - free(fdp); + talloc_free(fdp); return 0; }