---
name: "freerdsfig"
section: "3"
platform: "linux"
package: "alliance"
version: "5.1.1-3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/freerdsfig"
---

# freerdsfig(3)

frees memory associated to a figure

## NAME

 freerdsfig - frees memory associated to a figure

## SYNOPSYS

```
#include "rdsnnn.h"
void freerdsfig( Figure )
  rdsfig_list ∗Figure;
```

## PARAMETER

- *Figure*

  it's the pointer of the figure to be deleted.

## DESCRIPTION

This function free the memory associated to the figure. Memory place used by the Pointers of the rdsfig\_list structure is not free so the user has to free these pointers before calling the freerdsfig function.

## RETURN VALUE

nothing

## ERRORS

none

## EXAMPLE

```
#include "mutnnn.h"
#include "rdsnnn.h"
#include "rtlnnn.h"
	    main()
	     {
	       rdsfig_list ∗Figure;
               mbkenv();
               rdsenv();
               loadrdsparam();
	       Figure = allocrdsfig ();
	       Figure->NAME = rdsalloc(strlen("core")+1,RDS_ALLOC_BLOCK);
	       strcpy(Figure->NAME,"core");
	       ...
	       rdsfree    (Figure->NAME,RDS_ALLOC_BLOCK);
	       /∗ ∗/ freerdsfig ( Figure,RDS_ALLOC_BLOCK);
	     }
```

## SEE ALSO

**librds,** **allocrdsfig**
