projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
267e77f
)
Make sure global state gets NULLed on free
author
Panu Matilainen
<pmatilai@redhat.com>
Thu, 15 Jan 2009 07:22:58 +0000
(09:22 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Thu, 15 Jan 2009 07:22:58 +0000
(09:22 +0200)
- otherwise repeated read config -> free config like rpmbuild does
will crash and burn
- somewhat kludgy, figure a better way to do this
rpmio/rpmlua.c
patch
|
blob
|
history
diff --git
a/rpmio/rpmlua.c
b/rpmio/rpmlua.c
index
4afa8d5
..
133fa16
100644
(file)
--- a/
rpmio/rpmlua.c
+++ b/
rpmio/rpmlua.c
@@
-84,6
+84,7
@@
void *rpmluaFree(rpmlua lua)
if (lua->L) lua_close(lua->L);
free(lua->printbuf);
free(lua);
+ if (lua == globalLuaState) globalLuaState = NULL;
}
return NULL;
}