EMILE/libcontainer/container_close.c
Laurent Vivier 9bd9755dbb Update email address
Signed-off-by: Laurent Vivier <Laurent@Vivier.EU>
2013-09-05 14:45:27 +02:00

24 lines
315 B
C

/*
*
* (c) 2005 Laurent Vivier <Laurent@Vivier.EU>
*
*/
#include <stdlib.h>
#include "libcontainer.h"
#include "container.h"
void container_close(stream_FILE *file)
{
if (file == NULL)
return;
if (((container_FILE*)file)->container)
free(((container_FILE*)file)->container);
free(file);
return;
}