EMILE/libcontainer/container_close.c
2006-09-15 14:55:39 +00:00

23 lines
264 B
C

/*
*
* (c) 2005 Laurent Vivier <Laurent@lvivier.info>
*
*/
#include <stdlib.h>
#include "libcontainer.h"
int container_close(container_FILE *file)
{
if (file == NULL)
return -1;
if (file->container)
free(file->container);
free(file);
return 0;
}