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:
@@ -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_ */
|
||||
|
Reference in New Issue
Block a user