
Hi!
Is there any specific cleanup function in the library that removes the nodes that are returned to me? Or do I simple call free() when I no longer need the node?
Mayank.
-- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to libsmi-request@ibr.cs.tu-bs.de. !! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.

Hi!
sndtrn4> Is there any specific cleanup function in the library that sndtrn4> removes the nodes that are returned to me? Or do I simple sndtrn4> call free() when I no longer need the node?
You must not free any data structures returned by the library functions. They are allocated once when a module is loaded and not individually for each smiGet* call.
Just when you don't need any further libsmi function at all, you should call smiExit().
-frank -- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to libsmi-request@ibr.cs.tu-bs.de. !! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.
participants (2)
-
Frank Strauss
-
sndtrn4@hss.hns.com