From 9e7245bdb414dec167363b9178a37f4745afa595 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 19 Dec 2009 16:34:41 +0200 Subject: Change radius_msg_free() to free the buffer Since all callers were freeing the buffer immediately anyway, move this operation into radius_msg_free() to reduce code size. --- radius_example/radius_example.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'radius_example') diff --git a/radius_example/radius_example.c b/radius_example/radius_example.c index 1b27efc..59982ab 100644 --- a/radius_example/radius_example.c +++ b/radius_example/radius_example.c @@ -74,7 +74,6 @@ static void start_example(void *eloop_ctx, void *timeout_ctx) (u8 *) "user", 4)) { printf("Could not add User-Name\n"); radius_msg_free(msg); - os_free(msg); return; } @@ -84,7 +83,6 @@ static void start_example(void *eloop_ctx, void *timeout_ctx) ctx->conf.auth_server->shared_secret_len)) { printf("Could not add User-Password\n"); radius_msg_free(msg); - os_free(msg); return; } @@ -92,7 +90,6 @@ static void start_example(void *eloop_ctx, void *timeout_ctx) (u8 *) &ctx->own_ip_addr, 4)) { printf("Could not add NAS-IP-Address\n"); radius_msg_free(msg); - os_free(msg); return; } -- cgit v1.1