1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-05 16:55:50 +03:00

use ap_varbuf instead of allocating new strings each time we override an old one.

This uses leaks less memory, but it's still not perfect (but it's a start - maybe I need to use a mutex for this, to override the original object without running into race conditions)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1470155 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Gruno
2013-04-20 11:20:22 +00:00
parent ad1f224da1
commit 35f9ad9165
2 changed files with 12 additions and 6 deletions

View File

@@ -16,7 +16,7 @@
*/
#include "mod_lua.h"
#include "util_varbuf.h"
#ifndef _LUA_REQUEST_H_
#define _LUA_REQUEST_H_
@@ -40,8 +40,8 @@ typedef struct
typedef struct {
int type;
size_t size;
void* string;
lua_Number number;
struct ap_varbuf vb;
} lua_ivm_object;
#endif /* !_LUA_REQUEST_H_ */