Skip to content

Commit

Permalink
Typo fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcobambini committed Jun 28, 2021
1 parent 67c95a5 commit f9e95a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/shared/gravity_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ bool gravity_hash_compare (gravity_hash_t *hashtable1, gravity_hash_t *hashtable
return result;
}

void gravity_hash_finteralfree (gravity_hash_t *table, gravity_value_t key, gravity_value_t value, void *data) {
void gravity_hash_interalfree (gravity_hash_t *table, gravity_value_t key, gravity_value_t value, void *data) {
#pragma unused(table, key, data)
if (gravity_value_isobject(value)) {
gravity_object_t *obj = VALUE_AS_OBJECT(value);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/gravity_hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ GRAVITY_API bool gravity_hash_compare (gravity_hash_t *hashtable1, g

// MARK: - CALLBACKS -
// HASH FREE CALLBACK FUNCTION
GRAVITY_API void gravity_hash_finteralfree (gravity_hash_t *table, gravity_value_t key, gravity_value_t value, void *data);
GRAVITY_API void gravity_hash_interalfree (gravity_hash_t *table, gravity_value_t key, gravity_value_t value, void *data);
GRAVITY_API void gravity_hash_keyfree (gravity_hash_t *table, gravity_value_t key, gravity_value_t value, void *data);
GRAVITY_API void gravity_hash_keyvaluefree (gravity_hash_t *table, gravity_value_t key, gravity_value_t value, void *data);
GRAVITY_API void gravity_hash_valuefree (gravity_hash_t *table, gravity_value_t key, gravity_value_t value, void *data);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/gravity_value.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ static void gravity_class_free_internal (gravity_vm *vm, gravity_class_t *c, boo

if (!skip_base) {
// base classes have functions not registered inside VM so manually free all of them
gravity_hash_iterate(c->htable, gravity_hash_finteralfree, NULL);
gravity_hash_iterate(c->htable, gravity_hash_interalfree, NULL);
gravity_hash_iterate(c->htable, gravity_hash_valuefree, NULL);
}

Expand Down

0 comments on commit f9e95a4

Please sign in to comment.