Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
Loading...
Searching...
No Matches
native_runtime_cleanup.c File Reference

Implements cleanup helpers for native runtime-owned data structures. More...

#include "native_runtime_cleanup.h"
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

void free_app_runtime (AppRuntime *app)
 Releases heap-owned fields in a loaded app runtime record.
void free_runtime_stack (RuntimeStack *stack)
 Releases all loaded app runtimes and listener metadata in a runtime stack.

Detailed Description

Implements cleanup helpers for native runtime-owned data structures.

Definition in file native_runtime_cleanup.c.

Function Documentation

◆ free_app_runtime()

◆ free_runtime_stack()

void free_runtime_stack ( RuntimeStack * stack)

Releases all loaded app runtimes and listener metadata in a runtime stack.

Parameters
stackRuntime stack to clear.

Definition at line 28 of file native_runtime_cleanup.c.

References RuntimeStack::apps, RuntimeStack::count, free_app_runtime(), RuntimeStack::host, RuntimeStack::port, and RuntimeStack::socket_path.

Referenced by handle_native_runtime_command(), and serve_runtime_stack_native().